Skip to content

Commit c03743d

Browse files
committed
Simplify Playwright tests
1 parent f22874a commit c03743d

File tree

2 files changed

+2
-79
lines changed

2 files changed

+2
-79
lines changed

tests/pages-docs-learn.spec.js

Lines changed: 0 additions & 70 deletions
This file was deleted.

tests/pages.spec.js

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ const { test, expect } = require('@playwright/test');
33
test('homepage', async ({ page }) => {
44
await page.goto('/');
55

6-
await expect(page.getByRole('heading')).toContainText('Rossum.ai University');
7-
await expect(page.getByRole('paragraph')).toContainText('Build something cool with Rossum.ai');
6+
await expect(page.getByRole('heading')).toContainText('Unofficial Rossum.ai University');
7+
await expect(page.getByRole('paragraph')).toContainText('Build something cool with Rossum.ai and @mrtnzlml');
88
});
99

1010
test('main navigation (Learn button)', async ({ page }) => {
@@ -13,10 +13,3 @@ test('main navigation (Learn button)', async ({ page }) => {
1313
await page.getByLabel('Main', { exact: true }).getByRole('link', { name: 'Learn' }).click();
1414
await expect(page.locator('h1')).toContainText('AI training best practices');
1515
});
16-
17-
test('main navigation (Watch button)', async ({ page }) => {
18-
await page.goto('/');
19-
20-
await page.getByLabel('Main', { exact: true }).getByRole('link', { name: 'Watch' }).click();
21-
await expect(page.locator('h2').first()).toContainText('Rossum e-invoicing for Germany');
22-
});

0 commit comments

Comments
 (0)