diff options
author | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-10-30 13:37:18 +0100 |
---|---|---|
committer | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-11-07 17:37:44 +0100 |
commit | 42c5900e1175f17ccb106ddeb267b0fef3a042d1 (patch) | |
tree | b41235897e2013084ff23691beff8d988211517c /cypress/e2e | |
parent | 533c5e2aa43d2d77b7cb77786063217068daa719 (diff) | |
download | nextcloud-server-42c5900e1175f17ccb106ddeb267b0fef3a042d1.tar.gz nextcloud-server-42c5900e1175f17ccb106ddeb267b0fef3a042d1.zip |
test: Adjust Cypress setup to support mainline JS syntax
TODO: Drop when we support Node 22.
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Diffstat (limited to 'cypress/e2e')
-rw-r--r-- | cypress/e2e/files/files-renaming.cy.ts | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/cypress/e2e/files/files-renaming.cy.ts b/cypress/e2e/files/files-renaming.cy.ts index 6ba32989aa4..1bb2a530fe8 100644 --- a/cypress/e2e/files/files-renaming.cy.ts +++ b/cypress/e2e/files/files-renaming.cy.ts @@ -5,6 +5,7 @@ import type { User } from '@nextcloud/cypress' import { getRowForFile, renameFile, triggerActionForFile } from './FilesUtils' +import { assertNotExistOrNotVisible } from '../settings/usersUtils' const haveValidity = (validity: string | RegExp) => { if (typeof validity === 'string') { @@ -139,11 +140,15 @@ describe('files: Rename nodes', { testIsolation: true }, () => { getRowForFile('file.txt').should('be.visible') // Z so it is shown last renameFile('file.txt', 'zzz.txt') + // not visible any longer - getRowForFile('zzz.txt').should('not.be.visible') + getRowForFile('zzz.txt') + .should(assertNotExistOrNotVisible) + // scroll file list to bottom cy.get('[data-cy-files-list]').scrollTo('bottom') cy.screenshot() + // The file is no longer in rename state getRowForFile('zzz.txt') .should('be.visible') |