chore: group tests under tests/ (2) (#13082)
@ -13,6 +13,6 @@ browser_patches/chromium/output/
|
|||||||
**/*.d.ts
|
**/*.d.ts
|
||||||
output/
|
output/
|
||||||
test-results/
|
test-results/
|
||||||
tests-components/
|
tests/components/
|
||||||
examples/
|
examples/
|
||||||
DEPS
|
DEPS
|
18
package.json
@ -13,16 +13,16 @@
|
|||||||
},
|
},
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"ctest": "playwright test --config=tests/config/default.playwright.config.ts --project=chromium",
|
"ctest": "playwright test --config=tests/library/playwright.config.ts --project=chromium",
|
||||||
"ftest": "playwright test --config=tests/config/default.playwright.config.ts --project=firefox",
|
"ftest": "playwright test --config=tests/library/playwright.config.ts --project=firefox",
|
||||||
"wtest": "playwright test --config=tests/config/default.playwright.config.ts --project=webkit",
|
"wtest": "playwright test --config=tests/library/playwright.config.ts --project=webkit",
|
||||||
"atest": "playwright test --config=tests/config/android.config.ts",
|
"atest": "playwright test --config=tests/android/playwright.config.ts",
|
||||||
"etest": "playwright test --config=tests/config/electron.config.ts",
|
"etest": "playwright test --config=tests/electron/playwright.config.ts",
|
||||||
"htest": "playwright test --config=packages/html-reporter",
|
"htest": "playwright test --config=packages/html-reporter",
|
||||||
"ttest": "node ./tests/playwright-test/stable-test-runner/node_modules/@playwright/test/cli test --config=tests/playwright-test/playwright-test.config.ts",
|
"ttest": "node ./tests/playwright-test/stable-test-runner/node_modules/@playwright/test/cli test --config=tests/playwright-test/playwright.config.ts",
|
||||||
"vtest": "cross-env PLAYWRIGHT_DOCKER=1 node ./tests/playwright-test/stable-test-runner/node_modules/@playwright/test/cli test --config=tests/playwright-test/playwright-test.config.ts",
|
"vtest": "cross-env PLAYWRIGHT_DOCKER=1 node ./tests/playwright-test/stable-test-runner/node_modules/@playwright/test/cli test --config=tests/playwright-test/playwright.config.ts",
|
||||||
"ct": "npx playwright test tests-components/test-all.spec.js --reporter=list",
|
"ct": "playwright test tests/components/test-all.spec.js --reporter=list",
|
||||||
"test": "playwright test --config=tests/config/default.playwright.config.ts",
|
"test": "playwright test --config=tests/library/playwright.config.ts",
|
||||||
"eslint": "eslint --ext ts,tsx .",
|
"eslint": "eslint --ext ts,tsx .",
|
||||||
"tsc": "tsc -p .",
|
"tsc": "tsc -p .",
|
||||||
"build-installer": "babel -s --extensions \".ts\" --out-dir packages/playwright-core/lib/utils/ packages/playwright-core/src/utils",
|
"build-installer": "babel -s --extensions \".ts\" --out-dir packages/playwright-core/lib/utils/ packages/playwright-core/src/utils",
|
||||||
|
@ -19,14 +19,14 @@ loadEnv({ path: path.join(__dirname, '..', '..', '.env') });
|
|||||||
|
|
||||||
import type { Config, PlaywrightTestOptions, PlaywrightWorkerOptions } from '@playwright/test';
|
import type { Config, PlaywrightTestOptions, PlaywrightWorkerOptions } from '@playwright/test';
|
||||||
import * as path from 'path';
|
import * as path from 'path';
|
||||||
import { ServerWorkerOptions } from './serverFixtures';
|
import { ServerWorkerOptions } from '../config/serverFixtures';
|
||||||
|
|
||||||
process.env.PWPAGE_IMPL = 'android';
|
process.env.PWPAGE_IMPL = 'android';
|
||||||
|
|
||||||
const outputDir = path.join(__dirname, '..', '..', 'test-results');
|
const outputDir = path.join(__dirname, '..', '..', 'test-results');
|
||||||
const testDir = path.join(__dirname, '..');
|
const testDir = path.join(__dirname, '..');
|
||||||
const config: Config<ServerWorkerOptions & PlaywrightWorkerOptions & PlaywrightTestOptions> = {
|
const config: Config<ServerWorkerOptions & PlaywrightWorkerOptions & PlaywrightTestOptions> = {
|
||||||
globalSetup: path.join(__dirname, './globalSetup'),
|
globalSetup: path.join(__dirname, '../config/globalSetup'),
|
||||||
testDir,
|
testDir,
|
||||||
outputDir,
|
outputDir,
|
||||||
timeout: 120000,
|
timeout: 120000,
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 2.6 KiB |
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 3.8 KiB |
Before Width: | Height: | Size: 5.2 KiB After Width: | Height: | Size: 5.2 KiB |
Before Width: | Height: | Size: 9.4 KiB After Width: | Height: | Size: 9.4 KiB |
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 2.6 KiB |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 5.1 KiB After Width: | Height: | Size: 5.1 KiB |
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 3.1 KiB |