style(tests): format code for better readability
All checks were successful
Playwright Tests / test (pull_request) Successful in 2m33s
All checks were successful
Playwright Tests / test (pull_request) Successful in 2m33s
This commit is contained in:
parent
007a2f041b
commit
c1de527057
1 changed files with 12 additions and 7 deletions
|
@ -37,10 +37,15 @@ test.describe('mitarbeiter', () => {
|
||||||
|
|
||||||
test('DeleteShouldRemoveUser', async ({ page }) => {
|
test('DeleteShouldRemoveUser', async ({ page }) => {
|
||||||
const button = page.getByText('Delete').first();
|
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();
|
await button.click();
|
||||||
|
|
||||||
const user = page.getByText('Max');
|
const user = page.getByText('Delete');
|
||||||
expect(user).toBeFalsy();
|
expect(await user.count()).toBe(1);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue