"Manage Booking Questions" - Add a comprehensive test (#7465)
* Add first test * Add test for team event as well
This commit is contained in:
1 parent
a2fd5ba2a2
commit
6f8ea490d0
6 files changed
+471
-13
No files matched your search
+16
-2
@@ -8,7 +8,15 @@ dotEnv.config({ path: ".env" });
|
||||
|
||||
const outputDir = path.join(__dirname, "test-results");
|
||||
|
||||
const DEFAULT_NAVIGATION_TIMEOUT = 15000;
|
||||
// Dev Server on local can be slow to start up and process requests. So, keep timeouts really high on local, so that tests run reliably locally
|
||||
|
||||
// So, if not in CI, keep the timers high, if the test is stuck somewhere and there is unnecessary wait developer can see in browser that it's stuck
|
||||
const DEFAULT_NAVIGATION_TIMEOUT = process.env.CI ? 15000 : 50000;
|
||||
const DEFAULT_EXPECT_TIMEOUT = process.env.CI ? 10000 : 50000;
|
||||
|
||||
// Test Timeout can hit due to slow expect, slow navigation.
|
||||
// So, it should me much higher than sum of expect and navigation timeouts as there can be many async expects and navigations in a single test
|
||||
const DEFAULT_TEST_TIMEOUT = process.env.CI ? 60000 : 120000;
|
||||
|
||||
const headless = !!process.env.CI || !!process.env.PLAYWRIGHT_HEADLESS;
|
||||
|
||||
@@ -36,7 +44,7 @@ const config: PlaywrightTestConfig = {
|
||||
forbidOnly: !!process.env.CI,
|
||||
retries: 2,
|
||||
workers: os.cpus().length,
|
||||
timeout: 60_000,
|
||||
timeout: DEFAULT_TEST_TIMEOUT,
|
||||
maxFailures: headless ? 10 : undefined,
|
||||
fullyParallel: true,
|
||||
reporter: [
|
||||
@@ -58,6 +66,9 @@ const config: PlaywrightTestConfig = {
|
||||
name: "@calcom/web",
|
||||
testDir: "./apps/web/playwright",
|
||||
testMatch: /.*\.e2e\.tsx?/,
|
||||
expect: {
|
||||
timeout: DEFAULT_EXPECT_TIMEOUT,
|
||||
},
|
||||
use: {
|
||||
...devices["Desktop Chrome"],
|
||||
/** If navigation takes more than this, then something's wrong, let's fail fast. */
|
||||
@@ -68,6 +79,9 @@ const config: PlaywrightTestConfig = {
|
||||
name: "@calcom/app-store",
|
||||
testDir: "./packages/app-store/",
|
||||
testMatch: /.*\.e2e\.tsx?/,
|
||||
expect: {
|
||||
timeout: DEFAULT_EXPECT_TIMEOUT,
|
||||
},
|
||||
use: {
|
||||
...devices["Desktop Chrome"],
|
||||
/** If navigation takes more than this, then something's wrong, let's fail fast. */
|
||||
|
||||
Reference in new issue
Block a user