Skip to content

Commit e831aa7

Browse files
committed
fix(e2e): add admin fixture to global setup
The permission-redirect.spec.ts tests use authFixtures.admin, but the global setup was not generating admin.local.json. This caused all Admin role tests to fail in CI with: 'ENOENT: no such file or directory, open e2e/fixtures/auth/admin.local.json'
1 parent 90d837f commit e831aa7

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

playwright-global-setup.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ async function globalSetup() {
4242
// course author
4343
await loginAs(browser, 'author')
4444

45+
// admin
46+
await loginAs(browser, 'admin')
47+
4548
await browser.close()
4649
}
4750

0 commit comments

Comments
 (0)