feat: add Playwright testing framework configuration and tests #71
1 changed files with 9 additions and 0 deletions
|
@ -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();
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue