-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(admin): add select button in users list page
- Loading branch information
1 parent
bf9f97d
commit eb8733a
Showing
6 changed files
with
49 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -182,6 +182,9 @@ module('Acceptance | authenticated/users | list', function (hooks) { | |
identifiant: 'emma123', | ||
}); | ||
const screen = await visit('/users/list'); | ||
await click(screen.getByRole('button', { name: 'Contient' })); | ||
await screen.findByRole('listbox'); | ||
await click(screen.getByRole('option', { name: 'Exacte' })); | ||
await fillIn(screen.getByRole('textbox', { name: 'Nom' }), 'sardine'); | ||
await fillIn(screen.getByRole('textbox', { name: 'Adresse e-mail' }), '[email protected]'); | ||
await fillIn(screen.getByRole('textbox', { name: 'Identifiant' }), 'emma123'); | ||
|
@@ -194,6 +197,8 @@ module('Acceptance | authenticated/users | list', function (hooks) { | |
assert.dom(screen.getByRole('textbox', { name: 'Nom' })).hasNoValue(); | ||
assert.dom(screen.getByRole('textbox', { name: 'Adresse e-mail' })).hasNoValue(); | ||
assert.dom(screen.getByRole('textbox', { name: 'Identifiant' })).hasNoValue(); | ||
assert.dom(screen.getByRole('button', { name: 'Contient' })).exists(); | ||
assert.dom(screen.queryByRole('button', { name: 'Exacte' })).doesNotExist(); | ||
}); | ||
|
||
test('should let empty fields on search', async function (assert) { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters