Skip to content

Commit

Permalink
see if fetch(POST) fails on github or the login procedure
Browse files Browse the repository at this point in the history
  • Loading branch information
schiwaa committed May 22, 2024
1 parent 4e72883 commit 6a6b737
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions frontend-e2e/cypress/e2e/experimental.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ beforeEach(() => {
});

// some fetch(POST) for headless mode
describe('run some fetch(POST) requests', () => {
// ok to fail in expermimental branch
it.skip('login and logout', { defaultCommandTimeout: 10000, requestTimeout: 10000, responseTimeout: 10000 }, () => {
describe('login and logout with authentication modal and fetch(POST)', () => {
// currently fails in expermimental branch
it('fails in headless mode local and on github? passes in local headed mode', { 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 @@ -57,8 +57,11 @@ describe('run some fetch(POST) requests', () => {
cy.contains('header a', 'Sign in');
cy.get('header').should('not.contain', 'Sign out');
})
});

it('addStemma (and deleteStemma)', {}, () => { // would currently fail in github actions
// some fetch(POST) for headless mode
describe('addStemma and deleteStemma currently without login, pass in headless mode despite fetch(POST)?', () => {
it('passed in headless mode local and on github? passes in local headed mode (when guest config is adapted)', {}, () => { // 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 Down

0 comments on commit 6a6b737

Please sign in to comment.