Skip to content

Commit

Permalink
Iterate
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Telatynski <[email protected]>
  • Loading branch information
t3chguy committed Jan 13, 2025
1 parent 5e9066e commit c8e4625
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
6 changes: 4 additions & 2 deletions playwright/e2e/login/login-consent.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,12 @@ test.use({
},
},
},
credentials: async ({ context, homeserver }, use) => {
context: async ({ context, homeserver }, use) => {
// Restart the homeserver to wipe its in-memory db so we can reuse the same user ID without cross-signing prompts
await homeserver.restart();

await use(context);
},
credentials: async ({ context, homeserver }, use) => {
const displayName = "Dave";
const credentials = await homeserver.registerUser(username, password, displayName);
console.log(`Registered test user @user:localhost with displayname ${displayName}`);
Expand Down
6 changes: 3 additions & 3 deletions playwright/e2e/spotlight/spotlight.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,10 @@ const test = base.extend<{
});
await use({ name, roomId });
},
credentials: async ({ credentials, homeserver }, use) => {
// Restart the homeserver to wipe its in-memory db so we can purge the user_directory of users
context: async ({ context, homeserver }, use) => {
// Restart the homeserver to wipe its in-memory db so we can reuse the same user ID without cross-signing prompts
await homeserver.restart();
await use(credentials);
await use(context);
},
});

Expand Down

0 comments on commit c8e4625

Please sign in to comment.