test: add search functionality test case
All checks were successful
Playwright Tests / test (pull_request) Successful in 1m58s
All checks were successful
Playwright Tests / test (pull_request) Successful in 1m58s
This commit is contained in:
parent
d4cdfba01a
commit
56a2ef77fa
1 changed files with 12 additions and 0 deletions
|
@ -41,6 +41,18 @@ test.describe('mitarbeiter', () => {
|
||||||
const users = page.getByText('Delete');
|
const users = page.getByText('Delete');
|
||||||
await users.first().waitFor({ state: "visible" });
|
await users.first().waitFor({ state: "visible" });
|
||||||
expect(await users.count()).toBe(2);
|
expect(await users.count()).toBe(2);
|
||||||
|
expect(button).toBeTruthy();
|
||||||
|
});
|
||||||
|
|
||||||
|
test('SearchShouldWork', async ({ page }) => {
|
||||||
|
const searchField = page.getByRole('textbox');
|
||||||
|
const searchButton = page.getByText('Search').first();
|
||||||
|
|
||||||
|
await searchField.fill('Max');
|
||||||
|
await searchButton.click();
|
||||||
|
|
||||||
|
const hiddenItem = page.getByText('MusterFrau');
|
||||||
|
await expect(hiddenItem).toHaveCount(0);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue