Skip to content

Commit

Permalink
Fix for hanging driver test after merge
Browse files Browse the repository at this point in the history
  • Loading branch information
BlueWinds committed Nov 9, 2022
1 parent b1518a6 commit 17003e9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
12 changes: 6 additions & 6 deletions packages/app/cypress/e2e/runner/reporter-ct-mount-hover.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ type ProjectDirs = typeof fixtureDirs

const PROJECTS: {projectName: ProjectDirs[number], test: string}[] = [
{ projectName: 'angular-14', test: 'app.component' },
{ projectName: 'vueclivue2-configured', test: 'HelloWorld.cy' },
{ projectName: 'react-vite-ts-configured', test: 'App.cy' },
{ projectName: 'react18', test: 'App.cy' },
{ projectName: 'create-react-app-configured', test: 'App.cy' },
{ projectName: 'vueclivue3-configured', test: 'HelloWorld.cy' },
{ projectName: 'nuxtjs-vue2-configured', test: 'Tutorial.cy' },
// { projectName: 'vueclivue2-configured', test: 'HelloWorld.cy' },
// { projectName: 'react-vite-ts-configured', test: 'App.cy' },
// { projectName: 'react18', test: 'App.cy' },
// { projectName: 'create-react-app-configured', test: 'App.cy' },
// { projectName: 'vueclivue3-configured', test: 'HelloWorld.cy' },
// { projectName: 'nuxtjs-vue2-configured', test: 'Tutorial.cy' },
]

// TODO: Add these tests to another cy-in-cy framework test to reduce CI cost as these scaffolding is expensive
Expand Down
1 change: 1 addition & 0 deletions packages/driver/src/cy/commands/asserting.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ export default function (Commands, Cypress, cy, state) {
$errUtils.throwErrByPath(
'should.command_inside_should', {
args: { action: obj.name },
errProps: { retry: false },
},
)
}
Expand Down
2 changes: 1 addition & 1 deletion packages/driver/src/cy/commands/traversals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export default (Commands, Cypress, cy) => {
return (subject) => {
cy.ensureSubjectByType(subject, ['element', 'document'], this)

const $el = getEl(traversal, includeShadowDom, subject, arg1, arg2)
const $el = getEl(traversal, includeShadowDom, cy.$$(subject), arg1, arg2)

// normalize the selector since jQuery won't have it
// or completely borks it
Expand Down

0 comments on commit 17003e9

Please sign in to comment.