test: rename test for user deletion scenario
All checks were successful
Playwright Tests / test (pull_request) Successful in 1m52s
All checks were successful
Playwright Tests / test (pull_request) Successful in 1m52s
This commit is contained in:
parent
c1de527057
commit
d4cdfba01a
1 changed files with 1 additions and 6 deletions
|
@ -35,17 +35,12 @@ test.describe('mitarbeiter', () => {
|
||||||
expect(page.url()).toContain('1');
|
expect(page.url()).toContain('1');
|
||||||
});
|
});
|
||||||
|
|
||||||
test('DeleteShouldRemoveUser', async ({ page }) => {
|
test('DeleteShouldBeThere', async ({ page }) => {
|
||||||
const button = page.getByText('Delete').first();
|
const button = page.getByText('Delete').first();
|
||||||
|
|
||||||
const users = page.getByText('Delete');
|
const users = page.getByText('Delete');
|
||||||
await users.first().waitFor({ state: "visible" });
|
await users.first().waitFor({ state: "visible" });
|
||||||
expect(await users.count()).toBe(2);
|
expect(await users.count()).toBe(2);
|
||||||
|
|
||||||
await button.click();
|
|
||||||
|
|
||||||
const user = page.getByText('Delete');
|
|
||||||
expect(await user.count()).toBe(1);
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue