Skip to content

Commit

Permalink
Fix account delete in integration tests (#4087)
Browse files Browse the repository at this point in the history
  • Loading branch information
bastianjoel authored Sep 5, 2024
1 parent 988c6d2 commit 308e724
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions client/tests/integration/guards.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { test, expect, BrowserContext } from '@playwright/test';
import { expect, test } from '@playwright/test';

import { login, logout } from './helpers/auth';
import { createAccount, createMeeting, deleteAccounts, deleteCommittees, deleteMeetings } from './helpers/request';

Expand Down Expand Up @@ -33,8 +34,8 @@ test.describe(`Testing permission- and auth-guards`, () => {
test.afterAll(async ({ browser }) => {
const context = await browser.newContext();
await login(context);
await deleteAccounts(context, secondAccountId);
await deleteMeetings(context, meetingId);
await deleteAccounts(context, secondAccountId);
await deleteCommittees(context, committeeId);
await logout(context);
});
Expand Down
4 changes: 2 additions & 2 deletions client/tests/integration/login.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ test.describe(`Testing the internal sign in process with saml enabled`, () => {
test.afterAll(async ({ browser }) => {
const context = await browser.newContext();
await login(context);
await deleteAccounts(context, secondAccountId);
await deleteMeetings(context, meetingId);
await deleteAccounts(context, secondAccountId);
await deleteCommittees(context, committeeId);
await logout(context);
});
Expand Down Expand Up @@ -113,8 +113,8 @@ test.describe(`Testing the sign in and out process`, () => {
test.afterAll(async ({ browser }) => {
const context = await browser.newContext();
await login(context);
await deleteAccounts(context, secondAccountId);
await deleteMeetings(context, meetingId);
await deleteAccounts(context, secondAccountId);
await deleteCommittees(context, committeeId);
await logout(context);
});
Expand Down

0 comments on commit 308e724

Please sign in to comment.