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 007a2f041b - Show all commits

test: add test for user deletion functionality
Some checks failed
Playwright Tests / test (pull_request) Failing after 2m34s

Jan K9f 2025-01-17 11:30:24 +01:00
Signed by: jank
GPG key ID: 50620ADD22CD330B

View file

@ -34,4 +34,13 @@ test.describe('mitarbeiter', () => {
expect(page.url()).toContain('mitarbeiterbearbeiten');
expect(page.url()).toContain('1');
});
test('DeleteShouldRemoveUser', async ({page}) => {
const button = page.getByText('Delete').first();
await button.click();
const user = page.getByText('Max');
expect(user).toBeFalsy();
});
});