Skip to content

Commit

Permalink
change playwright tests
Browse files Browse the repository at this point in the history
  • Loading branch information
iamfrank committed Nov 30, 2023
1 parent 22e76bb commit 7bfad0a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
name: Playwright Tests
on:
workflow_dispatch
jobs:
test:
timeout-minutes: 60
Expand All @@ -19,4 +21,4 @@ jobs:
with:
name: playwright-report
path: playwright-report/
retention-days: 30
retention-days: 10
6 changes: 4 additions & 2 deletions playwright.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ const config = {
/* Opt out of parallel tests on CI. */
workers: process.env.CI ? 1 : undefined,
/* Reporter to use. See https://playwright.dev/docs/test-reporters */
reporter: 'html',
reporter: process.env.CI ? 'dot' : 'html',
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
use: {
/* Maximum time each action such as `click()` can take. Defaults to 0 (no limit). */
actionTimeout: 0,
/* Base URL to use in actions like `await page.goto('/')`. */
// baseURL: 'http://localhost:3000',
baseURL: process.env.CI ? 'https://sdfidk.github.io/okapi/' : 'localhost:7777',

/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
trace: 'on-first-retry',
Expand Down Expand Up @@ -100,10 +100,12 @@ const config = {
// outputDir: 'test-results/',

/* Run your local dev server before starting the tests */
/*
webServer: {
command: 'npm run start',
port: 7777,
}
*/
};

module.exports = config;

0 comments on commit 7bfad0a

Please sign in to comment.