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 c1de527057 - Show all commits

View file

@ -37,10 +37,15 @@ test.describe('mitarbeiter', () => {
test('DeleteShouldRemoveUser', async ({ page }) => {
const button = page.getByText('Delete').first();
const users = page.getByText('Delete');
await users.first().waitFor({ state: "visible" });
expect(await users.count()).toBe(2);
await button.click();
const user = page.getByText('Max');
expect(user).toBeFalsy();
const user = page.getByText('Delete');
expect(await user.count()).toBe(1);
});
});