({ dragStartCount, dragEndCount, gutterClickCount, gutterDblClickCount, transitionEndCount })
| 3 | import { moveGutterByMouse, checkSplitDirAndSizes } from '../support/splitUtils' |
| 4 | |
| 5 | function checkEventCount({ dragStartCount, dragEndCount, gutterClickCount, gutterDblClickCount, transitionEndCount }) { |
| 6 | if (dragStartCount !== undefined) { |
| 7 | cy.get('.logs ul li').filter('.dragStart').should('have.length', dragStartCount) |
| 8 | } |
| 9 | if (dragEndCount !== undefined) { |
| 10 | cy.get('.logs ul li').filter('.dragEnd').should('have.length', dragEndCount) |
| 11 | } |
| 12 | if (gutterClickCount !== undefined) { |
| 13 | cy.get('.logs ul li').filter('.gutterClick').should('have.length', gutterClickCount) |
| 14 | } |
| 15 | if (gutterDblClickCount !== undefined) { |
| 16 | cy.get('.logs ul li').filter('.gutterDblClick').should('have.length', gutterDblClickCount) |
| 17 | } |
| 18 | if (transitionEndCount !== undefined) { |
| 19 | cy.get('.logs ul li').filter('.transitionEnd').should('have.length', transitionEndCount) |
| 20 | } |
| 21 | } |
| 22 | |
| 23 | context('Gutter click example page tests', () => { |
| 24 | const W = 1070 |
no outgoing calls
no test coverage detected
searching dependent graphs…