Skip to content

Commit 2286fef

Browse files
committed
fix failing tests
1 parent 7941739 commit 2286fef

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/app/cypress/e2e/runner/reporter.hooks.cy.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@ describe('hooks', {
5353
o.sinon.stub(ctx.actions.file, 'openFile')
5454
})
5555

56-
cy.get('.open-in-ide-button').invoke('show').click()
56+
cy.get('.hook-open-in-ide').first().invoke('show').click()
5757

5858
cy.withCtx((ctx, o) => {
59-
expect(ctx.actions.file.openFile).to.have.been.calledWith(o.sinon.match(new RegExp(`hooks/basic\.cy\.js$`)), 1, 1)
59+
expect(ctx.actions.file.openFile).to.have.been.calledWith(o.sinon.match(new RegExp(`hooks/basic\.cy\.js$`)), 2, 2)
6060
})
6161
})
6262

packages/app/cypress/e2e/runner/runner.ui.cy.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,9 +171,9 @@ describe('src/cypress/runner', () => {
171171
o.sinon.stub(ctx.actions.file, 'openFile')
172172
})
173173

174-
cy.get('.open-in-ide-button').should('not.be.visible')
174+
cy.get('.open-in-ide-button').should('have.css', 'opacity', '0')
175175
cy.get('.runnable-header-file-name').realHover()
176-
cy.get('.open-in-ide-button').should('be.visible').click()
176+
cy.get('.open-in-ide-button').first().should('have.css', 'opacity', '1').click()
177177

178178
cy.withCtx((ctx, o) => {
179179
expect(ctx.actions.file.openFile).to.have.been.calledWith(o.sinon.match(new RegExp(`simple-cy-assert\.runner\.cy\.js$`)), 1, 1)

0 commit comments

Comments
 (0)