oncall-engine/grafana-plugin/e2e-tests/users/userProfile.test.ts
Dominik Broj 9257e1bec4
Fix user profile test (#4057)
# What this PR does
Fix user profile test


## Checklist

- [x] Unit, integration, and e2e (if applicable) tests updated
- [x] Documentation added (or `pr:no public docs` PR label added if not
required)
- [x] Added the relevant release notes label (see labels prefixed w/
`release:`). These labels dictate how your PR will
    show up in the autogenerated release notes.
2024-03-14 13:18:36 +00:00

16 lines
697 B
TypeScript

import { test, expect } from '../fixtures';
import { goToOnCallPage } from '../utils/navigation';
test('User can create, copy and revoke ical link', async ({ adminRolePage: { page } }) => {
await goToOnCallPage(page, 'users/me');
await page.getByTestId('create-ical-link').click();
await page.getByTestId('copy-ical-link').click();
await expect(page.getByText('iCal link is copied')).toBeVisible();
await page.reload();
await page.getByTestId('revoke-ical-link').click();
await page.getByLabel('Are you sure you want to revoke iCal link').getByText('Revoke', { exact: true }).click();
await page.reload();
await expect(page.getByTestId('create-ical-link')).toBeVisible();
});