This commit is contained in:
Murat Ozcan 2022-07-23 07:30:07 +03:00
parent 96412fc7a2
commit 697d7b0374
14 changed files with 35 additions and 53 deletions

View File

@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v3
# Version 1: no parallelization # Version 1: no parallelization
- name: Cypress run - name: Cypress run

View File

@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v3
# Version 1: no parallelization # Version 1: no parallelization
- name: Cypress run - name: Cypress run

View File

@ -1,6 +0,0 @@
{
"baseUrl": "http://localhost:3000",
"viewportHeight": 1000,
"viewportWidth": 1280,
"projectId": "pefcjb"
}

View 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}',
},
})

View File

@ -1,6 +0,0 @@
{
"baseUrl": "https://nextjs-cypress-j6ls5tggc-muratkeremozcan.vercel.app/",
"viewportHeight": 1000,
"viewportWidth": 1280,
"projectId": "pefcjb"
}

View 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}',
},
})

View File

@ -1,6 +0,0 @@
{
"baseUrl": "http://localhost:3000",
"viewportHeight": 1000,
"viewportWidth": 1280,
"projectId": "pefcjb"
}

View File

@ -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
}

View File

@ -12,13 +12,13 @@
"start": "turbo run start", "start": "turbo run start",
"types": "turbo run types", "types": "turbo run types",
"prettier-fix": "prettier --write .", "prettier-fix": "prettier --write .",
"cy:open-local": "cypress open --config-file cypress/config/local.json", "cy:open-local": "cypress open --config-file cypress/config/local.config.js",
"cy:run-local": "cypress run --config-file cypress/config/local.json", "cy:run-local": "cypress run --config-file cypress/config/local.config.js",
"cy:open-dev": "cypress open --config-file cypress/config/dev.json", "cy:open-dev": "cypress open --config-file cypress/config/dev.config.js",
"cy:run-dev": "cypress run --config-file cypress/config/dev.json" "cy:run-dev": "cypress run --config-file cypress/config/dev.config.js"
}, },
"devDependencies": { "devDependencies": {
"cypress": "9.6.1", "cypress": "10.3.1",
"husky": "7.0.4", "husky": "7.0.4",
"prettier": "2.5.1", "prettier": "2.5.1",
"turbo": "1.1.2" "turbo": "1.1.2"

View File

@ -75,7 +75,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v3
- name: Cypress run - name: Cypress run
uses: cypress-io/github-action@v3.0.4 uses: cypress-io/github-action@v3.0.4
@ -114,7 +114,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v3
- name: Cypress run - name: Cypress run
uses: cypress-io/github-action@v3.0.4 uses: cypress-io/github-action@v3.0.4

View File

@ -3007,10 +3007,10 @@ csstype@^3.0.2, csstype@^3.0.4:
resolved "https://registry.yarnpkg.com/csstype/-/csstype-3.0.11.tgz#d66700c5eacfac1940deb4e3ee5642792d85cd33" resolved "https://registry.yarnpkg.com/csstype/-/csstype-3.0.11.tgz#d66700c5eacfac1940deb4e3ee5642792d85cd33"
integrity sha512-sa6P2wJ+CAbgyy4KFssIb/JNMLxFvKF1pCYCSXS8ZMuqZnMsrxqI2E5sPyoTpxoPU/gVZMzr2zjOfg8GIZOMsw== integrity sha512-sa6P2wJ+CAbgyy4KFssIb/JNMLxFvKF1pCYCSXS8ZMuqZnMsrxqI2E5sPyoTpxoPU/gVZMzr2zjOfg8GIZOMsw==
cypress@9.6.1: cypress@10.3.1:
version "9.6.1" version "10.3.1"
resolved "https://registry.yarnpkg.com/cypress/-/cypress-9.6.1.tgz#a7d6b5a53325b3dc4960181f5800a5ade0f085eb" resolved "https://registry.yarnpkg.com/cypress/-/cypress-10.3.1.tgz#7fab4ef43481c05a9a17ebe9a0ec860e15b95a19"
integrity sha512-ECzmV7pJSkk+NuAhEw6C3D+RIRATkSb2VAHXDY6qGZbca/F9mv5pPsj2LO6Ty6oIFVBTrwCyL9agl28MtJMe2g== integrity sha512-As9HrExjAgpgjCnbiQCuPdw5sWKx5HUJcK2EOKziu642akwufr/GUeqL5UnCPYXTyyibvEdWT/pSC2qnGW/e5w==
dependencies: dependencies:
"@cypress/request" "^2.88.10" "@cypress/request" "^2.88.10"
"@cypress/xvfb" "^1.2.4" "@cypress/xvfb" "^1.2.4"