-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
61 additions
and
38 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,13 +8,14 @@ test('Admin task group activities page', async ({ page }) => { | |
}); | ||
|
||
await test.step('Search fractal-tasks-mock', async () => { | ||
const searchButton = page.getByRole('button', { name: 'Search activities' }); | ||
await expect(searchButton).toBeEnabled(); | ||
await page.getByRole('textbox', { name: 'Package name' }).fill('fractal-tasks-mock'); | ||
await page.getByRole('combobox', { name: 'Status' }).selectOption('OK'); | ||
await page.getByRole('combobox', { name: 'Action' }).selectOption('Collect'); | ||
await page.getByRole('combobox', { name: 'User' }).selectOption('[email protected]'); | ||
const searchButton = page.getByRole('button', { name: 'Search activities' }); | ||
await searchButton.click(); | ||
await expect(searchButton).toBeEnabled(); | ||
await expect(searchButton).toBeEnabled(); | ||
await expect(page.getByText(/The query returned 1 matching result/)).toBeVisible(); | ||
}); | ||
|
||
|
@@ -33,9 +34,9 @@ test('Admin task group activities page', async ({ page }) => { | |
await test.step('Reset', async () => { | ||
await page.getByRole('button', { name: 'Reset' }).click(); | ||
await expect(page.getByText(/The query returned \d+ matching result/)).not.toBeVisible(); | ||
await expect(page.getByRole('textbox', { name: 'Package name' })).toHaveValue(''); | ||
await expect(page.getByRole('combobox', { name: 'Status' })).toHaveValue(''); | ||
await expect(page.getByRole('combobox', { name: 'Action' })).toHaveValue(''); | ||
await expect(page.getByRole('combobox', { name: 'User' })).toHaveValue(''); | ||
}); | ||
await expect(page.getByRole('textbox', { name: 'Package name' })).toHaveValue(''); | ||
await expect(page.getByRole('combobox', { name: 'Status' })).toHaveValue(''); | ||
await expect(page.getByRole('combobox', { name: 'Action' })).toHaveValue(''); | ||
await expect(page.getByRole('combobox', { name: 'User' })).toHaveValue(''); | ||
}); | ||
}); |
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