feat: add Playwright testing framework configuration and tests #71

Merged
jank merged 48 commits from feature/add-playwright into main 2025-01-17 13:34:52 +00:00
Showing only changes of commit 56a2ef77fa - Show all commits

View file

@ -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);
});
});