Skip to content

Commit

Permalink
chore(cypress): Fix tests
Browse files Browse the repository at this point in the history
Signed-off-by: Christopher Ng <[email protected]>
  • Loading branch information
Pytal committed Feb 8, 2024
1 parent 0cec607 commit 4af64dc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
18 changes: 9 additions & 9 deletions cypress/e2e/versions.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,19 @@ describe('Versions', () => {
cy.get('[data-cy-files-list-row-name="' + versionFileName + '"] [data-cy-files-list-row-mtime]').click()
cy.get('.app-sidebar-header').should('be.visible').should('contain', versionFileName)
cy.get('.app-sidebar-tabs__tab:contains("Versions")').click()
cy.get('[data-files-versions-versions-list] li > a').should('have.length', 3)
cy.get('[data-files-versions-versions-list] li a').should('have.length', 3)

cy.get('[data-files-versions-versions-list] li > a').eq(1).click()
cy.get('[data-files-versions-versions-list] li a').eq(1).click()
cy.get('.viewer__content #read-only-editor')
.find('h1 [data-node-view-content]')
.should('have.text', 'V2')

cy.get('[data-files-versions-versions-list] li > a').eq(2).click()
cy.get('[data-files-versions-versions-list] li a').eq(2).click()
cy.get('.viewer__content #read-only-editor')
.find('h1 [data-node-view-content]')
.should('have.text', 'V1')

cy.get('[data-files-versions-versions-list] li > a').eq(0).click()
cy.get('[data-files-versions-versions-list] li a').eq(0).click()
cy.getContent()
.find('h1 [data-node-view-content]')
.should('have.text', 'V3')
Expand All @@ -60,19 +60,19 @@ describe('Versions', () => {

cy.get('.app-sidebar-tabs__tab:contains("Versions")').click()

cy.get('[data-files-versions-versions-list] li > a').should('have.length', 3)
cy.get('[data-files-versions-versions-list] li a').should('have.length', 3)

cy.get('[data-files-versions-versions-list] li > a').eq(1).click()
cy.get('[data-files-versions-versions-list] li a').eq(1).click()
cy.get('.viewer__content #read-only-editor')
.find('h1 [data-node-view-content]')
.should('have.text', 'V2')

cy.get('[data-files-versions-versions-list] li > a').eq(2).click()
cy.get('[data-files-versions-versions-list] li a').eq(2).click()
cy.get('.viewer__content #read-only-editor')
.find('h1 [data-node-view-content]')
.should('have.text', 'V1')

cy.get('[data-files-versions-versions-list] li > a').eq(0).click()
cy.get('[data-files-versions-versions-list] li a').eq(0).click()
cy.getContent()
.find('h1 [data-node-view-content]')
.should('have.text', 'V3')
Expand All @@ -97,7 +97,7 @@ describe('Versions', () => {

cy.get('.app-sidebar-tabs__tab:contains("Versions")').click()

cy.get('[data-files-versions-versions-list] li > a').should('have.length', 3)
cy.get('[data-files-versions-versions-list] li a').should('have.length', 3)

cy.get('[data-files-versions-versions-list] li').eq(2)
.find('button.action-item__menutoggle').first().click({ force: true })
Expand Down
1 change: 0 additions & 1 deletion src/nodes/Table/TableHeaderView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,6 @@ export default {
.setTextSelection(this.getPos())
.focus()
.run()
this.$refs.menu.closeMenu(false)
},
deleteColumn() {
this.editor.chain()
Expand Down

0 comments on commit 4af64dc

Please sign in to comment.