-
-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathsmoke.spec.ts
More file actions
23 lines (18 loc) · 1.13 KB
/
smoke.spec.ts
File metadata and controls
23 lines (18 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import { expect, test } from '@playwright/test';
test.describe('frontend smoke', () => {
test('loads create flow and inline access-token gate', async ({ page }) => {
await page.goto('/');
await expect(page.getByLabel('PAGE URL')).toBeVisible();
await expect(page.getByRole('button', { name: 'Generate feed URL' })).toBeVisible();
await expect(page.getByRole('button', { name: 'MORE' })).toBeVisible();
await page.getByLabel('PAGE URL').fill('https://example.com/articles');
await page.getByRole('button', { name: 'Generate feed URL' }).click();
await expect(page.getByRole('heading', { name: 'Add access token' })).toBeVisible();
await expect(page.getByRole('textbox', { name: 'Access token' })).toBeVisible();
await expect(page.getByRole('button', { name: 'Save and continue' })).toBeVisible();
await expect(page.getByRole('button', { name: 'Back' })).toBeVisible();
await page.getByRole('button', { name: 'Back' }).click();
await expect(page.getByRole('button', { name: 'Generate feed URL' })).toBeVisible();
await expect(page.getByRole('button', { name: 'MORE' })).toBeVisible();
});
});