Skip to content

Commit c301f8e

Browse files
authored
Merge branch 'develop' into marktnoonan/script-error-height
2 parents 809f574 + 292f8b4 commit c301f8e

File tree

104 files changed

+1195
-353
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

104 files changed

+1195
-353
lines changed

.vscode/cspell.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"Chainable",
88
"composables",
99
"ERRORED",
10+
"execa",
1011
"forcedefault",
1112
"Iconify",
1213
"Lachlan",

graphql-codegen.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ generates:
103103
<<: *vueOperations
104104

105105
'./packages/frontend-shared/src/generated/graphql.ts':
106-
documents: './packages/frontend-shared/src/gql-components/**/*.{vue,ts,tsx,js,jsx}'
106+
documents: './packages/frontend-shared/src/{gql-components,graphql}/**/*.{vue,ts,tsx,js,jsx}'
107107
<<: *vueOperations
108108
###
109109
# All GraphQL documents imported into the .spec.tsx files for component testing.

npm/create-cypress-tests/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "create-cypress-tests",
33
"version": "0.0.0-development",
44
"description": "Cypress smart installation wizard",
5-
"private": false,
5+
"private": true,
66
"main": "dist/src/main.js",
77
"scripts": {
88
"build": "yarn prepare-example && tsc -p ./tsconfig.json && node scripts/example copy-to ./dist/initial-template && yarn prepare-copy-templates",

npm/cypress-schematic/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@cypress/schematic",
33
"version": "0.0.0-development",
44
"description": "Official Cypress schematic for the Angular CLI",
5-
"private": false,
5+
"private": true,
66
"main": "./src",
77
"scripts": {
88
"build": "tsc -p tsconfig.json",

npm/mount-utils/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "@cypress/mount-utils",
33
"version": "0.0.0-development",
44
"description": "Shared utilities for the various component testing adapters",
5+
"private": true,
56
"main": "dist/index.js",
67
"scripts": {
78
"build": "tsc || echo 'built, with type errors'",

npm/react/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "@cypress/react",
33
"version": "0.0.0-development",
44
"description": "Test React components using Cypress",
5+
"private": true,
56
"main": "dist/cypress-react.cjs.js",
67
"scripts": {
78
"build": "rimraf dist && rollup -c rollup.config.js",

npm/vue/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "@cypress/vue",
33
"version": "0.0.0-development",
44
"description": "Browser-based Component Testing for Vue.js with Cypress.io ✌️🌲",
5+
"private": true,
56
"main": "dist/cypress-vue.cjs.js",
67
"scripts": {
78
"build-prod": "yarn build",

npm/vue2/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "@cypress/vue2",
33
"version": "0.0.0-development",
44
"description": "Browser-based Component Testing for Vue.js@2 with Cypress.io ✌️🌲",
5+
"private": true,
56
"main": "dist/cypress-vue2.cjs.js",
67
"scripts": {
78
"typecheck": "tsc --noEmit",

packages/app/cypress.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { defineConfig } from 'cypress'
22
import getenv from 'getenv'
3-
import { initGitRepoForTestProject } from './cypress/tasks/git'
3+
import { initGitRepoForTestProject, resetGitRepoForTestProject } from './cypress/tasks/git'
44

55
const CYPRESS_INTERNAL_CLOUD_ENV = getenv('CYPRESS_INTERNAL_CLOUD_ENV', process.env.CYPRESS_INTERNAL_ENV || 'development')
66

@@ -55,6 +55,7 @@ export default defineConfig({
5555

5656
on('task', {
5757
initGitRepoForTestProject,
58+
resetGitRepoForTestProject,
5859
})
5960

6061
return await e2ePluginSetup(on, config)

packages/app/cypress/e2e/cypress-in-cypress-component.cy.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ describe('Cypress In Cypress CT', { viewportWidth: 1500, defaultCommandTimeout:
126126
cy.get('[data-model-state="passed"]').should('contain', 'renders the test component')
127127

128128
cy.withCtx((ctx, o) => {
129-
o.sinon.stub(ctx.actions.app, 'setActiveBrowserById')
129+
o.sinon.stub(ctx.actions.browser, 'setActiveBrowserById')
130130
o.sinon.stub(ctx.actions.project, 'launchProject').resolves()
131131
})
132132

@@ -137,10 +137,10 @@ describe('Cypress In Cypress CT', { viewportWidth: 1500, defaultCommandTimeout:
137137
.click()
138138

139139
cy.withCtx((ctx, o) => {
140-
const browserId = (ctx.actions.app.setActiveBrowserById as SinonStub).args[0][0]
140+
const browserId = (ctx.actions.browser.setActiveBrowserById as SinonStub).args[0][0]
141141
const genId = ctx.fromId(browserId, 'Browser')
142142

143-
expect(ctx.actions.app.setActiveBrowserById).to.have.been.calledWith(browserId)
143+
expect(ctx.actions.browser.setActiveBrowserById).to.have.been.calledWith(browserId)
144144
expect(genId).to.eql('firefox-firefox-stable')
145145
expect(ctx.actions.project.launchProject).to.have.been.calledWith(
146146
ctx.coreData.currentTestingType, {}, o.sinon.match(new RegExp('cypress\-in\-cypress\/src\/TestComponent\.spec\.jsx$')),

0 commit comments

Comments
 (0)