Skip to content

Commit

Permalink
see if add and delete stemma work without login
Browse files Browse the repository at this point in the history
  • Loading branch information
schiwaa committed May 22, 2024
1 parent 13931a2 commit 4e72883
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions frontend-e2e/cypress/e2e/experimental.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 <ROOT>/middleware/stemmaweb_middleware/controller/auth/routes.py
/* @blueprint.route("/login", methods=["POST"])
def login():
Expand Down Expand Up @@ -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 <ROOT>/frontend/www/src/js/modules/common/service/stemmarestService.js
// and applied in <ROOT>/frontend/www/src/js/modules/dashboard/tradition/stemma/editStemma.js
/* return this.fetch(`/api/tradition/${tradId}/stemma/`, {
Expand All @@ -69,7 +69,7 @@ describe('run some fetch(POST) requests', () => {
*/

// need for login skipped in <ROOT>/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
Expand All @@ -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);

});
});
Expand Down

0 comments on commit 4e72883

Please sign in to comment.