From 4e72883b0a2a77f73c523764efc0d8aee96daa39 Mon Sep 17 00:00:00 2001 From: schiwaa Date: Wed, 22 May 2024 18:31:57 +0200 Subject: [PATCH] see if add and delete stemma work without login --- frontend-e2e/cypress/e2e/experimental.cy.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend-e2e/cypress/e2e/experimental.cy.js b/frontend-e2e/cypress/e2e/experimental.cy.js index f594ef8b..0545030f 100644 --- a/frontend-e2e/cypress/e2e/experimental.cy.js +++ b/frontend-e2e/cypress/e2e/experimental.cy.js @@ -13,7 +13,7 @@ beforeEach(() => { // some fetch(POST) for headless mode describe('run some fetch(POST) requests', () => { // ok to fail in expermimental branch - it('login and logout', { defaultCommandTimeout: 10000, requestTimeout: 10000, responseTimeout: 10000 }, () => { + it.skip('login and logout', { defaultCommandTimeout: 10000, requestTimeout: 10000, responseTimeout: 10000 }, () => { // Login is in /middleware/stemmaweb_middleware/controller/auth/routes.py /* @blueprint.route("/login", methods=["POST"]) def login(): @@ -58,7 +58,7 @@ describe('run some fetch(POST) requests', () => { cy.get('header').should('not.contain', 'Sign out'); }) - it.skip('addStemma (and deleteStemma)', {}, () => { // would currently fail in github actions + it('addStemma (and deleteStemma)', {}, () => { // would currently fail in github actions // addStemma is defined in /frontend/www/src/js/modules/common/service/stemmarestService.js // and applied in /frontend/www/src/js/modules/dashboard/tradition/stemma/editStemma.js /* return this.fetch(`/api/tradition/${tradId}/stemma/`, { @@ -69,7 +69,7 @@ describe('run some fetch(POST) requests', () => { */ // need for login skipped in /frontend/www/src/js/modules/common/service/stemmarestService.js - cy.loginViaUi(admin); + // cy.loginViaUi(admin); const tradition = test_traditions.find(trad => trad.title.startsWith('John verse')); cy.log('tradition.title: ' + tradition.title); // click on the tradition title within the tradition list @@ -86,7 +86,7 @@ describe('run some fetch(POST) requests', () => { cy.get('#delete-stemma-button-link').wait(500).click(); // DELETE method cy.contains('Yes, delete it').wait(500).click(); - cy.logoutViaUi(admin); + // cy.logoutViaUi(admin); }); });