feat: add Playwright testing framework configuration and tests #71
1 changed files with 12 additions and 0 deletions
|
@ -41,6 +41,18 @@ test.describe('mitarbeiter', () => {
|
|||
const users = page.getByText('Delete');
|
||||
await users.first().waitFor({ state: "visible" });
|
||||
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