Skip to content

Commit 7941739

Browse files
committed
only add pointer-events:none to tests and not suites
1 parent ba6342c commit 7941739

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,7 @@ describe('hooks', {
6767
})
6868

6969
// does not display commands from skipped tests
70-
cy.contains('test 1').click()
71-
cy.contains('test 1').parents('.collapsible').first().should('not.contain', 'testBody 1')
72-
cy.contains('test 1').click()
70+
cy.contains('test 1').should('have.css', 'pointer-events', 'none')
7371

7472
// displays before hook when following it.skip
7573
// https://github.com/cypress-io/cypress/issues/8086

packages/reporter/src/runnables/runnables.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,8 +224,8 @@ $dotted-line-left-padding: 19px;
224224
flex-shrink: 0;
225225
}
226226

227-
&.runnable-pending,
228-
&.runnable-processing {
227+
&.test.runnable-pending,
228+
&.test.runnable-processing {
229229
pointer-events: none;
230230
}
231231

0 commit comments

Comments
 (0)