Skip to content

Commit

Permalink
change smoke test to delay refresh until after restub
Browse files Browse the repository at this point in the history
  • Loading branch information
svonworl authored Sep 12, 2024
1 parent f2f3cf6 commit ccae736
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cypress/e2e/smokeTests/sharedTests/auth-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,13 @@ function testWorkflow(registry: string, repo: string, name: string) {
cy.get('#publishButton').contains('Unpublish').click({ force: true });

goToTab('Info');
cy.intercept('**/restub').as('restub');
cy.contains('button', 'Restub').click();
// Wait for the restub request to complete, so that it does not overlap
// with the subsequent refresh and occasionally trigger a db error on
// the webservice.
// See https://ucsc-cgl.atlassian.net/browse/SEAB-6535
cy.wait('@restub');
// This fails because DOI is auto issued when published, and restub fails.
// See https://ucsc-gi.slack.com/archives/C05EZH3RVNY/p1718128426265779
// cy.contains('button', 'Publish').should('be.disabled');
Expand Down

0 comments on commit ccae736

Please sign in to comment.