diff options
author | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-06-11 15:34:58 +0200 |
---|---|---|
committer | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-06-11 21:34:28 +0200 |
commit | 7f3cc7502ba81174671ee87dda58f9275bdde4e0 (patch) | |
tree | 9deed845f6de693d03bfed6b64dfe7158fb5ede5 /cypress | |
parent | bac37b13ec9459da106406105451315f106c487e (diff) | |
download | nextcloud-server-7f3cc7502ba81174671ee87dda58f9275bdde4e0.tar.gz nextcloud-server-7f3cc7502ba81174671ee87dda58f9275bdde4e0.zip |
fix(files): Use `data-cy` (data attribute) instead of `cy-data`
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Diffstat (limited to 'cypress')
-rw-r--r-- | cypress/e2e/files/FilesUtils.ts | 2 | ||||
-rw-r--r-- | cypress/e2e/files/files-sidebar.cy.ts | 12 |
2 files changed, 7 insertions, 7 deletions
diff --git a/cypress/e2e/files/FilesUtils.ts b/cypress/e2e/files/FilesUtils.ts index 0ab6284e8b6..ed2a9ac3389 100644 --- a/cypress/e2e/files/FilesUtils.ts +++ b/cypress/e2e/files/FilesUtils.ts @@ -113,7 +113,7 @@ export const navigateToFolder = (dirPath: string) => { export const closeSidebar = () => { // {force: true} as it might be hidden behind toasts - cy.get('[cy-data-sidebar] .app-sidebar__close').click({ force: true }) + cy.get('[data-cy-sidebar] .app-sidebar__close').click({ force: true }) } export const clickOnBreadcrumbs = (label: string) => { diff --git a/cypress/e2e/files/files-sidebar.cy.ts b/cypress/e2e/files/files-sidebar.cy.ts index c845a772695..a5dd9399c50 100644 --- a/cypress/e2e/files/files-sidebar.cy.ts +++ b/cypress/e2e/files/files-sidebar.cy.ts @@ -26,7 +26,7 @@ describe('Files: Sidebar', { testIsolation: true }, () => { triggerActionForFile('file', 'details') - cy.get('[cy-data-sidebar]').should('be.visible') + cy.get('[data-cy-sidebar]').should('be.visible') }) it('changes the current fileid', () => { @@ -35,7 +35,7 @@ describe('Files: Sidebar', { testIsolation: true }, () => { triggerActionForFile('file', 'details') - cy.get('[cy-data-sidebar]').should('be.visible') + cy.get('[data-cy-sidebar]').should('be.visible') cy.url().should('contain', `apps/files/files/${fileId}`) }) @@ -46,10 +46,10 @@ describe('Files: Sidebar', { testIsolation: true }, () => { // open the sidebar triggerActionForFile('file', 'details') // validate it is open - cy.get('[cy-data-sidebar]').should('be.visible') + cy.get('[data-cy-sidebar]').should('be.visible') triggerActionForFile('file', 'delete') - cy.get('[cy-data-sidebar]').should('not.exist') + cy.get('[data-cy-sidebar]').should('not.exist') }) it('changes the fileid on delete', () => { @@ -65,11 +65,11 @@ describe('Files: Sidebar', { testIsolation: true }, () => { // open the sidebar triggerActionForFile('other', 'details') // validate it is open - cy.get('[cy-data-sidebar]').should('be.visible') + cy.get('[data-cy-sidebar]').should('be.visible') cy.url().should('contain', `apps/files/files/${otherFileId}`) triggerActionForFile('other', 'delete') - cy.get('[cy-data-sidebar]').should('not.exist') + cy.get('[data-cy-sidebar]').should('not.exist') // Ensure the URL is changed cy.url().should('not.contain', `apps/files/files/${otherFileId}`) }) |