-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(system-e2e): Add test for admin delegations (#17536)
* fix scopes for find all * remove unused test
- Loading branch information
1 parent
27c57ef
commit 93980d0
Showing
2 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
30 changes: 30 additions & 0 deletions
30
apps/system-e2e/src/tests/islandis/admin-portal/smoke/admin-delegations.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import { BrowserContext, expect, test } from '@playwright/test' | ||
|
||
import { urls } from '../../../../support/urls' | ||
import { session } from '../../../../support/session' | ||
|
||
test.use({ baseURL: urls.islandisBaseUrl }) | ||
|
||
test.describe('Admin portal - admin delegations', () => { | ||
let context: BrowserContext | ||
|
||
test.describe('As admin with write access', () => { | ||
test.beforeAll(async ({ browser }) => { | ||
context = await session({ | ||
browser, | ||
homeUrl: `/stjornbord`, | ||
phoneNumber: '0102399', | ||
idsLoginOn: true, | ||
}) | ||
}) | ||
test.afterAll(async () => { | ||
await context.close() | ||
}) | ||
|
||
test('should see "Add" button', async () => { | ||
const page = await context.newPage() | ||
await page.goto('/stjornbord/delegation-admin') | ||
await expect(page.getByText('Skrá nýtt umboð')).toBeVisible() | ||
}) | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters