-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6afe295
commit 0ee5eb3
Showing
5 changed files
with
128 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import {test, expect} from '@playwright/test'; | ||
|
||
test.describe('Demo page', () => { | ||
// A very basic test to assess the availability of the dev server. | ||
test('should have a title', async ({page}) => { | ||
await page.goto('/'); | ||
await expect(page).toHaveTitle(/Orejime/); | ||
}); | ||
}); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import {defineConfig, devices} from '@playwright/test'; | ||
|
||
export default defineConfig({ | ||
testDir: './e2e', | ||
fullyParallel: true, | ||
forbidOnly: !!process.env.CI, | ||
retries: process.env.CI ? 2 : 0, | ||
workers: process.env.CI ? 1 : undefined, | ||
reporter: 'html', | ||
use: { | ||
baseURL: 'http://127.0.0.1:3000', | ||
trace: 'on-first-retry' | ||
}, | ||
projects: [ | ||
{ | ||
name: 'chromium', | ||
use: {...devices['Desktop Chrome']} | ||
}, | ||
{ | ||
name: 'firefox', | ||
use: {...devices['Desktop Firefox']} | ||
} | ||
], | ||
webServer: { | ||
command: 'npm run serve', | ||
url: 'http://127.0.0.1:3000', | ||
reuseExistingServer: !process.env.CI | ||
} | ||
}); |