mirror of
https://github.com/vercel/commerce.git
synced 2025-05-17 15:06:59 +00:00
cy 10
This commit is contained in:
parent
96412fc7a2
commit
697d7b0374
2
.github/workflows/deployment.yml
vendored
2
.github/workflows/deployment.yml
vendored
@ -10,7 +10,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
uses: actions/checkout@v3
|
||||
|
||||
# Version 1: no parallelization
|
||||
- name: Cypress run
|
||||
|
2
.github/workflows/main.yml
vendored
2
.github/workflows/main.yml
vendored
@ -9,7 +9,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
uses: actions/checkout@v3
|
||||
|
||||
# Version 1: no parallelization
|
||||
- name: Cypress run
|
||||
|
@ -1,6 +0,0 @@
|
||||
{
|
||||
"baseUrl": "http://localhost:3000",
|
||||
"viewportHeight": 1000,
|
||||
"viewportWidth": 1280,
|
||||
"projectId": "pefcjb"
|
||||
}
|
11
cypress/config/dev.config.js
Normal file
11
cypress/config/dev.config.js
Normal file
@ -0,0 +1,11 @@
|
||||
const { defineConfig } = require('cypress')
|
||||
|
||||
module.exports = defineConfig({
|
||||
viewportHeight: 1000,
|
||||
viewportWidth: 1280,
|
||||
projectId: 'pefcjb',
|
||||
e2e: {
|
||||
baseUrl: 'https://nextjs-cypress-j6ls5tggc-muratkeremozcan.vercel.app/',
|
||||
specPattern: 'cypress/e2e/**/*.{js,jsx,ts,tsx}',
|
||||
},
|
||||
})
|
@ -1,6 +0,0 @@
|
||||
{
|
||||
"baseUrl": "https://nextjs-cypress-j6ls5tggc-muratkeremozcan.vercel.app/",
|
||||
"viewportHeight": 1000,
|
||||
"viewportWidth": 1280,
|
||||
"projectId": "pefcjb"
|
||||
}
|
11
cypress/config/local.config.js
Normal file
11
cypress/config/local.config.js
Normal file
@ -0,0 +1,11 @@
|
||||
const { defineConfig } = require('cypress')
|
||||
|
||||
module.exports = defineConfig({
|
||||
viewportHeight: 1000,
|
||||
viewportWidth: 1280,
|
||||
projectId: 'pefcjb',
|
||||
e2e: {
|
||||
baseUrl: 'http://localhost:3000',
|
||||
specPattern: 'cypress/e2e/**/*.{js,jsx,ts,tsx}',
|
||||
},
|
||||
})
|
@ -1,6 +0,0 @@
|
||||
{
|
||||
"baseUrl": "http://localhost:3000",
|
||||
"viewportHeight": 1000,
|
||||
"viewportWidth": 1280,
|
||||
"projectId": "pefcjb"
|
||||
}
|
@ -1,22 +0,0 @@
|
||||
/// <reference types="cypress" />
|
||||
// ***********************************************************
|
||||
// This example plugins/index.js can be used to load plugins
|
||||
//
|
||||
// You can change the location of this file or turn off loading
|
||||
// the plugins file with the 'pluginsFile' configuration option.
|
||||
//
|
||||
// You can read more here:
|
||||
// https://on.cypress.io/plugins-guide
|
||||
// ***********************************************************
|
||||
|
||||
// This function is called when a project is opened or re-opened (e.g. due to
|
||||
// the project's config changing)
|
||||
|
||||
/**
|
||||
* @type {Cypress.PluginConfig}
|
||||
*/
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
module.exports = (on, config) => {
|
||||
// `on` is used to hook into various events Cypress emits
|
||||
// `config` is the resolved Cypress config
|
||||
}
|
10
package.json
10
package.json
@ -12,13 +12,13 @@
|
||||
"start": "turbo run start",
|
||||
"types": "turbo run types",
|
||||
"prettier-fix": "prettier --write .",
|
||||
"cy:open-local": "cypress open --config-file cypress/config/local.json",
|
||||
"cy:run-local": "cypress run --config-file cypress/config/local.json",
|
||||
"cy:open-dev": "cypress open --config-file cypress/config/dev.json",
|
||||
"cy:run-dev": "cypress run --config-file cypress/config/dev.json"
|
||||
"cy:open-local": "cypress open --config-file cypress/config/local.config.js",
|
||||
"cy:run-local": "cypress run --config-file cypress/config/local.config.js",
|
||||
"cy:open-dev": "cypress open --config-file cypress/config/dev.config.js",
|
||||
"cy:run-dev": "cypress run --config-file cypress/config/dev.config.js"
|
||||
},
|
||||
"devDependencies": {
|
||||
"cypress": "9.6.1",
|
||||
"cypress": "10.3.1",
|
||||
"husky": "7.0.4",
|
||||
"prettier": "2.5.1",
|
||||
"turbo": "1.1.2"
|
||||
|
@ -75,7 +75,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Cypress run
|
||||
uses: cypress-io/github-action@v3.0.4
|
||||
@ -114,7 +114,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Cypress run
|
||||
uses: cypress-io/github-action@v3.0.4
|
||||
|
@ -3007,10 +3007,10 @@ csstype@^3.0.2, csstype@^3.0.4:
|
||||
resolved "https://registry.yarnpkg.com/csstype/-/csstype-3.0.11.tgz#d66700c5eacfac1940deb4e3ee5642792d85cd33"
|
||||
integrity sha512-sa6P2wJ+CAbgyy4KFssIb/JNMLxFvKF1pCYCSXS8ZMuqZnMsrxqI2E5sPyoTpxoPU/gVZMzr2zjOfg8GIZOMsw==
|
||||
|
||||
cypress@9.6.1:
|
||||
version "9.6.1"
|
||||
resolved "https://registry.yarnpkg.com/cypress/-/cypress-9.6.1.tgz#a7d6b5a53325b3dc4960181f5800a5ade0f085eb"
|
||||
integrity sha512-ECzmV7pJSkk+NuAhEw6C3D+RIRATkSb2VAHXDY6qGZbca/F9mv5pPsj2LO6Ty6oIFVBTrwCyL9agl28MtJMe2g==
|
||||
cypress@10.3.1:
|
||||
version "10.3.1"
|
||||
resolved "https://registry.yarnpkg.com/cypress/-/cypress-10.3.1.tgz#7fab4ef43481c05a9a17ebe9a0ec860e15b95a19"
|
||||
integrity sha512-As9HrExjAgpgjCnbiQCuPdw5sWKx5HUJcK2EOKziu642akwufr/GUeqL5UnCPYXTyyibvEdWT/pSC2qnGW/e5w==
|
||||
dependencies:
|
||||
"@cypress/request" "^2.88.10"
|
||||
"@cypress/xvfb" "^1.2.4"
|
||||
|
Loading…
x
Reference in New Issue
Block a user