-
Notifications
You must be signed in to change notification settings - Fork 618
/
example.cypress.config.ts
34 lines (32 loc) · 1.1 KB
/
example.cypress.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import { defineConfig } from "cypress";
export default defineConfig({
viewportWidth: 1600,
viewportHeight: 1200,
defaultCommandTimeout: 30000,
video: false,
retries: {
runMode: 5,
openMode: 0
},
env: {
WEBSITE_NAME: "Cypress Test Website",
WEBSITE_URL: "{WEBSITE_URL}",
WEBSITE_PREVIEW_URL: "{WEBSITE_PREVIEW_URL}",
ADMIN_URL: "{ADMIN_URL}",
API_URL: "{API_URL}",
GRAPHQL_API_URL: "{API_URL}/graphql",
CMS_MANAGE_GRAPHQL_API_URL: "{API_URL}/cms/manage",
AUTHORIZATION_TOKEN_KEY: "webiny-token",
AWS_COGNITO_USER_POOL_ID: "{AWS_COGNITO_USER_POOL_ID}",
AWS_COGNITO_CLIENT_ID: "{AWS_COGNITO_CLIENT_ID}",
DEFAULT_ADMIN_USER_USERNAME: "admin@webiny.com",
DEFAULT_ADMIN_USER_PASSWORD: "12345678",
DEFAULT_ADMIN_USER_FIRST_NAME: "admin-first-name",
DEFAULT_ADMIN_USER_LAST_NAME: "admin-last-name",
/* https://github.com/jaredpalmer/cypress-image-snapshot#preventing-failures */
failOnSnapshotDiff: false
},
e2e: {
baseUrl: "{ADMIN_URL}"
}
});