mirror of
https://github.com/PeWu/topola-viewer.git
synced 2026-05-26 23:26:15 +00:00
Migrate from Cypress to Playwright
This commit is contained in:
18
tests/intro.spec.ts
Normal file
18
tests/intro.spec.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
import {expect, test} from '@playwright/test';
|
||||
import {blockTracking} from './helpers';
|
||||
|
||||
test.describe('Intro page', () => {
|
||||
test.beforeEach(async ({page, context}) => {
|
||||
await blockTracking(context);
|
||||
await page.goto('/');
|
||||
});
|
||||
|
||||
test('displays intro text', async ({page}) => {
|
||||
await expect(page.getByText('Examples')).toBeVisible();
|
||||
});
|
||||
|
||||
test('displays menu', async ({page}) => {
|
||||
await expect(page.getByText('Open file', {exact: true})).toBeVisible();
|
||||
await expect(page.getByText('Load from URL', {exact: true})).toBeVisible();
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user