forked from saleor/storefront
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cypress.config.ts
31 lines (30 loc) · 983 Bytes
/
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
/* eslint-disable @typescript-eslint/no-var-requires */
// eslint-disable-next-line import/no-extraneous-dependencies
import { defineConfig } from "cypress";
import "../react-storefront/packages/env-vars";
export default defineConfig({
projectId: "o9u948",
chromeWebSecurity: false,
videoUploadOnPasses: false,
defaultCommandTimeout: 15000,
requestTimeout: 15000,
viewportWidth: 1400,
viewportHeight: 660,
retries: {
runMode: 1,
openMode: 0,
},
env: {
API_URL: process.env.SALEOR_API_URL,
userEmail: process.env.CYPRESS_USER_EMAIL,
userPassword: process.env.CYPRESS_USER_PASSWORD,
digitalProduct: process.env.CYPRESS_DIGITAL_PRODUCT,
productWithoutVariants: process.env.CYPRESS_WITHOUT_VARIANTS,
productWithVariants: process.env.CYPRESS_WITH_VARIANTS,
productToSearch: process.env.CYPRESS_PRODUCT_TO_SEARCH,
},
e2e: {
baseUrl: "http://localhost:3000/",
specPattern: "cypress/e2e/**/*.cy.{js,jsx,ts,tsx}",
},
});