Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export default defineConfig({
use: {
/* Base URL to use in actions like `await page.goto('/')`. */
baseURL: process.env.WEBSITE_URL,
ignoreHTTPSErrors: true,

/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
trace: 'on-first-retry',
Expand All @@ -49,6 +50,11 @@ export default defineConfig({
use: { ...devices['Desktop Safari'] },
},

{
name: 'edge',
use: { ...devices['Desktop Edge'] },
},

/* Test against mobile viewports. */
// {
// name: 'Mobile Chrome',
Expand Down
4 changes: 2 additions & 2 deletions tests/example.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ test('register page', async ({ page }) => {
await page.goto('/login.php');

// Click the get started link.
await page.getByRole('link', { name: 'Create an account' }).click();
await page.getByRole('link', { name: 'Create Account' }).click();

// Expects page to have a button with the name of Create Account.
await expect(page.getByRole('button', { name: 'Register' })).toBeVisible();
await expect(page.getByRole('button', { name: 'Create Account' })).toBeVisible();
});