Skip to content

Commit c43ab63

Browse files
committed
fix: Sidebar tests
Signed-off-by: Christopher Ng <[email protected]>
1 parent 898dbec commit c43ab63

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

cypress/e2e/sidebar.cy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ describe('Check activity listing in the sidebar', { testIsolation: true }, () =>
8383
addComment('welcome.txt', 'A comment')
8484

8585
showActivityTab('welcome.txt')
86-
cy.get('.activity-entry').first().should('contains.text', 'You commented')
86+
cy.get('.activity-entry').first().should('contains.text', 'A comment')
8787
})
8888

8989
})

cypress/e2e/sidebarUtils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import { toggleMenuAction } from './filesUtils'
2525
function showSidebarForFile(fileName: string) {
2626
closeSidebar()
2727
toggleMenuAction(fileName)
28-
cy.get('[data-cy-files-list-row-action="details"]').click()
28+
cy.get('[data-cy-files-list-row-action="details"] button').click()
2929
cy.get('#app-sidebar-vue').should('be.visible')
3030
}
3131

@@ -67,7 +67,7 @@ export function createPublicShare(fileName: string) {
6767

6868
cy.get('#app-sidebar-vue #tab-sharing').should('be.visible')
6969
cy.get('#app-sidebar-vue button.new-share-link').click({ force: true })
70-
cy.get('#app-sidebar-vue a.sharing-entry__copy').should('be.visible')
70+
cy.get('#app-sidebar-vue .sharing-entry__copy').should('be.visible')
7171
closeSidebar()
7272
}
7373

0 commit comments

Comments
 (0)