cypress: NC: visit the files URL directly.

Change-Id: I9d4666235308354f74105edfa0f5b1831ab0bf14
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
This commit is contained in:
Tamás Zolnai 2020-10-28 18:31:49 +01:00 committed by Tamás Zolnai
parent b5ca282a1a
commit 5db82b9622

View file

@ -71,7 +71,7 @@ function loadTestDocNextcloud(fileName, subFolder, subsequentLoad) {
});
// Open local nextcloud installation
cy.visit('http://localhost/nextcloud');
cy.visit('http://localhost/nextcloud/index.php/apps/files');
if (subsequentLoad !== true) {
// Log in with cypress test user / password
@ -86,13 +86,6 @@ function loadTestDocNextcloud(fileName, subFolder, subsequentLoad) {
cy.get('input#submit-form')
.click();
// Select files on the starting screen
cy.get('#appmenu [data-id="files"]', {timeout : Cypress.config('defaultCommandTimeout') * 2.0})
.should('be.visible');
cy.get('#appmenu [data-id="files"]')
.click();
cy.get('.button.new')
.should('be.visible');