Make embed tests work with single playwright config (#7781)

* Fix Embed test

* Remove only
This commit is contained in:
Hariom Balhara authored and GitHub committed 2023-03-16 11:16:09 -07:00
1 parent f3e8bed1cf
commit 470ef737b5
39 files changed
+10 -10

No files matched your search

+3 -3
View File
@@ -52,7 +52,7 @@ if (IS_EMBED_REACT_TEST) {
const config: PlaywrightTestConfig = {
forbidOnly: !!process.env.CI,
retries: 2,
retries: process.env.CI ? 2 : 0,
workers: os.cpus().length,
timeout: DEFAULT_TEST_TIMEOUT,
maxFailures: headless ? 10 : undefined,
@@ -102,13 +102,13 @@ const config: PlaywrightTestConfig = {
name: "@calcom/embed-core",
testDir: "./packages/embeds/embed-core/",
testMatch: /.*\.(e2e|test)\.tsx?/,
use: { ...devices["Desktop Chrome"] },
use: { ...devices["Desktop Chrome"], baseURL: "http://localhost:3100/" },
},
{
name: "@calcom/embed-react",
testDir: "./packages/embeds/embed-react/",
testMatch: /.*\.(e2e|test)\.tsx?/,
use: { ...devices["Desktop Chrome"] },
use: { ...devices["Desktop Chrome"], baseURL: "http://localhost:3101/" },
},
{
name: "@calcom/embed-core--firefox",