Skip to content

Commit

Permalink
Merge pull request #2588 from nextcloud/test/fix-e2e-with-latest-version
Browse files Browse the repository at this point in the history
fix(e2e): use login and createRandomUser from package
  • Loading branch information
Chartman123 authored Feb 20, 2025
2 parents c4fa049 + 547d482 commit 5b42246
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 58 deletions.
6 changes: 3 additions & 3 deletions playwright/support/fixtures/random-user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*/

import { test as base } from '@playwright/test'
import { createRandomUser, login } from '../utils/session'
import { createRandomUser, login } from '@nextcloud/e2e-test-server/playwright'

/**
* This test fixture ensures a new random user is created and used for the test (current page)
Expand All @@ -17,8 +17,8 @@ export const test = base.extend({
baseURL,
})

const uid = await createRandomUser()
await login(page.request, uid, uid)
const user = await createRandomUser()
await login(page.request, user)

await use(page)
await page.close()
Expand Down
55 changes: 0 additions & 55 deletions playwright/support/utils/session.ts

This file was deleted.

0 comments on commit 5b42246

Please sign in to comment.