Skip to content

Commit

Permalink
feat: create first e2e tests for app + jaqpot.org
Browse files Browse the repository at this point in the history
  • Loading branch information
alarv committed Oct 16, 2024
1 parent c526948 commit 7783717
Show file tree
Hide file tree
Showing 6 changed files with 51 additions and 5 deletions.
17 changes: 17 additions & 0 deletions .idea/aws.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions .idea/jaqpot-e2e-tests.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions tests/example.spec.ts → tests/app.spec.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
import { test, expect } from '@playwright/test';

test('has title', async ({ page }) => {
await page.goto('https://playwright.dev/');
await page.goto('https://app.jaqpot.org/');

// Expect a title "to contain" a substring.
await expect(page).toHaveTitle(/Playwright/);
await expect(page).toHaveTitle(/Jaqpot/);
});

test('get started link', async ({ page }) => {
await page.goto('https://playwright.dev/');
await page.goto('https://jaqpot.org/');

// Click the get started link.
await page.getByRole('link', { name: 'Get started' }).click();
await page.getByRole('link', { name: 'Getting started' }).click();

// Expects page to have a heading with the name of Installation.
await expect(page.getByRole('heading', { name: 'Installation' })).toBeVisible();
await expect(page.getByRole('heading', { name: 'Getting started' })).toBeVisible();
});

0 comments on commit 7783717

Please sign in to comment.