E2E fix attempt (#1845)
* E2E fix attemp * Moves playwright config to root Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
parent
2f892a9ec5
commit
79f9bf6d5e
3 changed files with 9 additions and 9 deletions
2
.github/workflows/e2e.yml
vendored
2
.github/workflows/e2e.yml
vendored
|
@ -87,7 +87,7 @@ jobs:
|
||||||
- name: Install playwright deps
|
- name: Install playwright deps
|
||||||
if: steps.playwright-cache.outputs.cache-hit != 'true'
|
if: steps.playwright-cache.outputs.cache-hit != 'true'
|
||||||
run: yarn playwright install --with-deps
|
run: yarn playwright install --with-deps
|
||||||
- run: yarn playwright test -c apps/web/playwright.config.ts
|
- run: yarn test-playwright
|
||||||
|
|
||||||
- name: Upload videos
|
- name: Upload videos
|
||||||
if: ${{ always() }}
|
if: ${{ always() }}
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
"prepare": "husky install",
|
"prepare": "husky install",
|
||||||
"start": "turbo run start",
|
"start": "turbo run start",
|
||||||
"test": "turbo run test",
|
"test": "turbo run test",
|
||||||
"test-playwright": "yarn playwright test -c apps/web/playwright.config.ts",
|
"test-playwright": "yarn playwright test",
|
||||||
"type-check": "turbo run type-check"
|
"type-check": "turbo run type-check"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|
|
@ -7,23 +7,22 @@ import { addAliases } from "module-alias";
|
||||||
// https://stackoverflow.com/questions/69023682/typescript-playwright-error-cannot-find-module
|
// https://stackoverflow.com/questions/69023682/typescript-playwright-error-cannot-find-module
|
||||||
// https://github.com/microsoft/playwright/issues/7066#issuecomment-983984496
|
// https://github.com/microsoft/playwright/issues/7066#issuecomment-983984496
|
||||||
addAliases({
|
addAliases({
|
||||||
"@components": __dirname + "/components",
|
"@components": __dirname + "/apps/web/components",
|
||||||
"@lib": __dirname + "/lib",
|
"@lib": __dirname + "/apps/web/lib",
|
||||||
"@server": __dirname + "/server",
|
"@server": __dirname + "/apps/web/server",
|
||||||
"@ee": __dirname + "/ee",
|
"@ee": __dirname + "/apps/web/ee",
|
||||||
});
|
});
|
||||||
|
|
||||||
const config: PlaywrightTestConfig = {
|
const config: PlaywrightTestConfig = {
|
||||||
forbidOnly: !!process.env.CI,
|
forbidOnly: !!process.env.CI,
|
||||||
testDir: "playwright",
|
|
||||||
timeout: 60_000,
|
timeout: 60_000,
|
||||||
reporter: [
|
reporter: [
|
||||||
[process.env.CI ? "github" : "list"],
|
[process.env.CI ? "github" : "list"],
|
||||||
["html", { outputFolder: "./playwright/reports/playwright-html-report", open: "never" }],
|
["html", { outputFolder: "./playwright/reports/playwright-html-report", open: "never" }],
|
||||||
["junit", { outputFile: "./playwright/reports/results.xml" }],
|
["junit", { outputFile: "./playwright/reports/results.xml" }],
|
||||||
],
|
],
|
||||||
globalSetup: require.resolve("./playwright/lib/globalSetup"),
|
globalSetup: require.resolve("./apps/web/playwright/lib/globalSetup"),
|
||||||
outputDir: "playwright/results",
|
outputDir: "./playwright/results",
|
||||||
webServer: {
|
webServer: {
|
||||||
command: "yarn start --scope=@calcom/web",
|
command: "yarn start --scope=@calcom/web",
|
||||||
port: 3000,
|
port: 3000,
|
||||||
|
@ -39,6 +38,7 @@ const config: PlaywrightTestConfig = {
|
||||||
projects: [
|
projects: [
|
||||||
{
|
{
|
||||||
name: "chromium",
|
name: "chromium",
|
||||||
|
testDir: "apps/web/playwright",
|
||||||
use: { ...devices["Desktop Chrome"] },
|
use: { ...devices["Desktop Chrome"] },
|
||||||
},
|
},
|
||||||
/* {
|
/* {
|
Loading…
Reference in a new issue