Skip to content

Commit

Permalink
Separated the full test, from simple test
Browse files Browse the repository at this point in the history
  • Loading branch information
SergioCasCeb committed Nov 13, 2023
1 parent 14572a3 commit 93a6d9b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 16 deletions.
3 changes: 2 additions & 1 deletion packages/web-new/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
"dev": "webpack serve --mode development",
"serve": "node server/server.js",
"examples": "node external-scripts/generate-paths.js",
"test": "npx playwright test"
"test": "npx playwright test --project=chromium --project=firefox",
"test-full": "npx playwright test"
},
"devDependencies": {
"@babel/core": "^7.22.9",
Expand Down
17 changes: 2 additions & 15 deletions packages/web-new/playwright.config.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,8 @@
// @ts-check
const { defineConfig, devices } = require('@playwright/test');

/**
* Read environment variables from file.
* https://github.com/motdotla/dotenv
*/
// require('dotenv').config();

/**
* @see https://playwright.dev/docs/test-configuration
*/
module.exports = defineConfig({
testDir: './tests',
// Folder for test artifacts such as screenshots, videos, traces, etc.
Expand Down Expand Up @@ -38,28 +31,23 @@ module.exports = defineConfig({
{
name: 'chromium',
use: { ...devices['Desktop Chrome'] },
// use: { ...devices['Desktop Chrome'], headless: false, slowMo: 500},
},

{
name: 'firefox',
use: { ...devices['Desktop Firefox'] },
},

{
name: 'webkit',
use: { ...devices['Desktop Safari'] },
},

/* Test against branded browsers. */
{
name: 'Microsoft Edge',
use: { ...devices['Desktop Edge'], channel: 'msedge' },
},
{
name: 'Google Chrome',
use: { ...devices['Desktop Chrome'], channel: 'chrome' },
},
}
],

/* Run your local dev server before starting the tests */
Expand All @@ -68,5 +56,4 @@ module.exports = defineConfig({
url: 'http://127.0.0.1:5100',
reuseExistingServer: !process.env.CI,
},
});

});

0 comments on commit 93a6d9b

Please sign in to comment.