Skip to content

Commit 27ecd7c

Browse files
committed
update tests with new spec file name classname
1 parent aa891fc commit 27ecd7c

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ describe('src/cypress/runner', () => {
172172
})
173173

174174
cy.get('.open-in-ide-button').should('have.css', 'opacity', '0')
175-
cy.get('.runnable-header-file-name').realHover()
175+
cy.get('.spec-file-name').realHover()
176176
cy.get('.open-in-ide-button').first().should('have.css', 'opacity', '1').click()
177177

178178
cy.withCtx((ctx, o) => {

packages/reporter/cypress/e2e/runnables.cy.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ describe('runnables', () => {
137137

138138
it('does not display time if no time taken', () => {
139139
start()
140-
cy.get('.runnable-header .runnable-header-file-name').contains('foo.js')
140+
cy.get('.runnable-header .spec-file-name').contains('foo.js')
141141
cy.get('.runnable-header .duration').should('not.exist')
142142
})
143143

@@ -204,7 +204,7 @@ describe('runnables', () => {
204204
})
205205

206206
it('contains name of spec and emits when clicked', () => {
207-
const selector = '.runnable-header-file-name'
207+
const selector = '.spec-file-name'
208208

209209
cy.stub(runner, 'emit').callThrough()
210210

packages/reporter/cypress/e2e/spec_title.cy.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,15 +55,15 @@ describe('spec title', () => {
5555
})
5656

5757
it('displays name without path', () => {
58-
cy.get('.runnable-header-file-name').contains('foo.js')
58+
cy.get('.spec-file-name').contains('foo.js')
5959

6060
cy.percySnapshot()
6161
})
6262

6363
it('displays Open in IDE button on spec name hover', () => {
6464
cy.get('.open-in-ide-button').should('have.css', 'opacity', '0')
6565

66-
cy.get('.runnable-header-file-name').realHover()
66+
cy.get('.spec-file-name').realHover()
6767
cy.get('.open-in-ide-button').should('have.css', 'opacity', '1')
6868
cy.get('.open-in-ide-button').contains('Open in IDE')
6969

0 commit comments

Comments
 (0)