]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix(cypress): Adjust cypress tests that relied on version to be 28 41712/head
authorFerdinand Thiessen <opensource@fthiessen.de>
Thu, 23 Nov 2023 23:57:55 +0000 (00:57 +0100)
committerFerdinand Thiessen <opensource@fthiessen.de>
Thu, 23 Nov 2023 23:57:55 +0000 (00:57 +0100)
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
cypress/e2e/theming/navigation-bar-settings.cy.ts
cypress/support/commonUtils.ts

index b15b70b0e0f7a10d728fd120fa7db05e9024459c..3d92518c4bd13a997e962d2b7253d554d286a2c6 100644 (file)
@@ -89,6 +89,7 @@ describe('Admin theming set default apps', () => {
        })
 
        it('See the default app is changed back to default', () => {
+               cy.reload()
                cy.get('#nextcloud').click()
                cy.url().should('match', /apps\/dashboard/)
        })
index 580e9b23428921af2efbd06e8da665846fbddeb4..82c55c8e91eef433417472b834da4d3c8c59a2dd 100644 (file)
@@ -45,7 +45,7 @@ export function installTestApp() {
                const version = output.stdout.match(/(\d\d+)\.\d+\.\d+/)?.[1]
                cy.wrap(version).should('not.be.undefined')
                cy.exec(`docker cp '${testAppPath}' nextcloud-cypress-tests-server:/var/www/html/apps`, { log: true })
-               cy.exec(`docker exec nextcloud-cypress-tests-server sed -i 's|version="[0-9]+|version="${version}|' apps/testapp/appinfo/info.xml`)
+               cy.exec(`docker exec nextcloud-cypress-tests-server sed -i -e 's|-version="[0-9]\\+|-version="${version}|g' apps/testapp/appinfo/info.xml`)
                cy.runOccCommand('app:enable testapp')
        })
 }