generated from kubefirst/react-app-template
-
Notifications
You must be signed in to change notification settings - Fork 8
/
cypress.config.ts
72 lines (68 loc) · 3.15 KB
/
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
import { defineConfig } from 'cypress';
import * as dotenv from 'dotenv';
import { createRandomTwoCharacters } from 'utils/createRandomTwoCharacters';
dotenv.config();
export default defineConfig({
env: {
CONSOLE_BASE_URL: process.env.CONSOLE_BASE_URL,
GIT_PROVIDER: process.env.GIT_PROVIDER,
GITHUB_TOKEN: process.env.GITHUB_TOKEN,
GITLAB_TOKEN: process.env.GITLAB_TOKEN,
GITHUB_USER: process.env.GITHUB_USER,
GITLAB_USER: process.env.GITLAB_USER,
GITLAB_OWNER: process.env.GITLAB_OWNER,
GITHUB_OWNER: process.env.GITHUB_OWNER,
CIVO_TOKEN: process.env.CIVO_TOKEN,
CIVO_CLOUD_REGION: process.env.CIVO_CLOUD_REGION,
DNS_PROVIDER: process.env.DNS_PROVIDER,
DOMAIN_NAME: process.env.DOMAIN_NAME,
ALERTS_EMAIL: process.env.ALERTS_EMAIL,
CLOUDFLARE_TOKEN: process.env.CLOUDFLARE_TOKEN,
CLOUDFLARE_ORIGIN_CA_KEY: process.env.CLOUDFLARE_ORIGIN_CA_KEY,
CLUSTER_NAME: process.env.CLUSTER_NAME,
SUB_DOMAIN: process.env.SUB_DOMAIN,
WORKLOAD_ENVIRONMENT: process.env.WORKLOAD_ENVIRONMENT,
WORKLOAD_CLUSTER_NAME: process.env.WORKLOAD_CLUSTER_NAME,
GITOPS_TEMPLATE_BRANCH: process.env.GITOPS_TEMPLATE_BRANCH,
RANDOM_TWO_CHARACTERS: createRandomTwoCharacters(),
AWS_ACCESS_KEY_ID: process.env.AWS_ACCESS_KEY_ID,
AWS_SECRET_KEY: process.env.AWS_SECRET_KEY,
AWS_SESSION_TOKEN: process.env.AWS_SESSION_TOKEN,
IMAGE_REPO: process.env.IMAGE_REPO,
CLOUD_PROVIDER: process.env.CLOUD_PROVIDER,
GOOGLE_APPLICATION_CREDENTIALS: process.env.GOOGLE_APPLICATION_CREDENTIALS,
GOOGLE_PROJECT_ID: process.env.GOOGLE_PROJECT_ID,
DIGI_OCEAN_AUTH_TOKEN: process.env.DIGI_OCEAN_AUTH_TOKEN,
DIGI_OCEAN_SPACES_KEY: process.env.DIGI_OCEAN_SPACES_KEY,
DIGI_OCEAN_SPACES_SECRET: process.env.DIGI_OCEAN_SPACES_SECRET,
VULTR_TOKEN: process.env.VULTR_TOKEN,
AWS_DOMAIN_NAME: process.env.AWS_DOMAIN_NAME,
CIVO_DOMAIN_NAME: process.env.CIVO_DOMAIN_NAME,
CLOUDFLARE_DOMAIN_NAME: process.env.CLOUDFLARE_DOMAIN_NAME,
DIGITAL_OCEAN_DOMAIN_NAME: process.env.DIGITAL_OCEAN_DOMAIN_NAME,
VULTR_DOMAIN_NAME: process.env.VULTR_DOMAIN_NAME,
GOOGLE_DOMAIN_NAME: process.env.GOOGLE_DOMAIN_NAME,
VULTR_CLOUD_REGION: process.env.VULTR_CLOUD_REGION,
DIGITAL_OCEAN_CLOUD_REGION: process.env.DIGITAL_OCEAN_CLOUD_REGION,
GOOGLE_CLOUD_REGION: process.env.GOOGLE_CLOUD_REGION,
AWS_CLOUD_REGION: process.env.AWS_CLOUD_REGION,
USE_HTTPS: process.env.USE_HTTPS,
IS_CLUSTER_ZERO: process.env.IS_CLUSTER_ZERO,
FORCE_DESTROY_TERRAFORM: process.env.FORCE_DESTROY_TERRAFORM,
GOOGLE_CLOUD_ZONE: process.env.GOOGLE_CLOUD_ZONE,
CIVO_INSTANCE_SIZE: process.env.CIVO_INSTANCE_SIZE,
AWS_INSTANCE_SIZE: process.env.AWS_INSTANCE_SIZE,
GOOGLE_INSTANCE_SIZE: process.env.GOOGLE_INSTANCE_SIZE,
DIGITAL_OCEAN_INSTANCE_SIZE: process.env.DIGITAL_OCEAN_INSTANCE_SIZE,
VULTR_INSTANCE_SIZE: process.env.VULTR_INSTANCE_SIZE,
SHOW_GOOGLE_KEY_FILE: process.env.SHOW_GOOGLE_KEY_FILE,
},
viewportWidth: 1440,
viewportHeight: 900,
e2e: {
//eslint-disable-next-line @typescript-eslint/no-unused-vars
setupNodeEvents(on, config) {
// implement node event listeners here
},
},
});