* Add Routing logic to Query builder * Make a working redirect * Make it an app * Move pages and components to App * Integrate all pages in the app * Integrate prisma everywhere * Fix Routing Link * Add routing preview * Fixes * Get deplouyed on preview with ts disabled * Fix case * add reordering for routes * Move away from react DnD * Add sidebar * Add sidebar support and select support * Various fixes and improvements * Ignore eslint temporarly * Route might be falsy * Make CalNumber support required validation * Loader improvements * Add SSR support * Fix few typescript issues * More typesafety, download csv, bug fiees * Add seo friendly link * Avoid seding credebtials to frontend * Self review fixes * Improvements in app-store * Cahnge Form layout * Add scaffolding for app tests * Add playwright tests and add user check in serving data * Add CI tests * Add route builder test * Styling * Apply suggestions from code review Co-authored-by: Agusti Fernandez Pardo <[email protected]> * Changes as per loom feedback * Increase time for tests * Fix PR suggestions * Import CSS only in the module * Fix codacy issues * Move the codebbase to ee and add PRO and license check * Add Badge * Avoid lodash import * Fix TS error * Fix lint errors * Fix bug to merge conflicts resolution - me query shouldnt cause the Shell to go in loading state Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> Co-authored-by: zomars <[email protected]> Co-authored-by: Agusti Fernandez Pardo <[email protected]>
58 lines
1.7 KiB
TypeScript
58 lines
1.7 KiB
TypeScript
import { PlaywrightTestConfig, devices } from "@playwright/test";
|
|
import { config as dotEnvConfig } from "dotenv";
|
|
import * as path from "path";
|
|
|
|
// TODO: May be derive it automatically, so that moving the file to another location doesn't require changing the code
|
|
dotEnvConfig({ path: "../../../../../.env" });
|
|
const DEFAULT_NAVIGATION_TIMEOUT = 15000;
|
|
|
|
// Paths are relative to main playwright config.
|
|
const outputDir = path.join("../results");
|
|
const testDir = path.join("../tests");
|
|
|
|
// Quick Mode has no retries to fail fast and quickly re-iterate
|
|
// Also, it runs the tests only one browser for the same reason
|
|
const quickMode = process.env.QUICK === "true";
|
|
const CI = process.env.CI;
|
|
export const config: PlaywrightTestConfig = {
|
|
forbidOnly: !!CI,
|
|
retries: quickMode && !CI ? 0 : 1,
|
|
workers: 1,
|
|
timeout: 60_000,
|
|
reporter: [
|
|
[CI ? "github" : "list"],
|
|
[
|
|
"html",
|
|
{
|
|
outputFolder: path.join(process.cwd(), "playwright", "reports", "playwright-html-report"),
|
|
open: "never",
|
|
},
|
|
],
|
|
["junit", { outputFile: path.join(process.cwd(), "playwright", "reports", "results.xml") }],
|
|
],
|
|
outputDir,
|
|
webServer: {
|
|
command: "NEXT_PUBLIC_IS_E2E=1 yarn workspace @calcom/web start -p 3000",
|
|
port: 3000,
|
|
timeout: 60_000,
|
|
reuseExistingServer: !process.env.CI,
|
|
},
|
|
use: {
|
|
baseURL: "http://localhost:3000",
|
|
locale: "en-US",
|
|
trace: "retain-on-failure",
|
|
headless: !!process.env.CI || !!process.env.PLAYWRIGHT_HEADLESS,
|
|
},
|
|
projects: [
|
|
{
|
|
name: "chromium",
|
|
testDir,
|
|
use: {
|
|
...devices["Desktop Chrome"],
|
|
/** If navigation takes more than this, then something's wrong, let's fail fast. */
|
|
navigationTimeout: DEFAULT_NAVIGATION_TIMEOUT,
|
|
},
|
|
},
|
|
],
|
|
};
|