-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MR-2369: turn on rates db refactor flag for cypress (#1957)
* Enable `rates-db-refactor` and `supporting-docs-by-rate` flag for cypress tests. * Skip Q&A tests, resolver not modified for refactor yet. * cypress re-run * Update virusScan test.
- Loading branch information
1 parent
467f055
commit 0ad0e6c
Showing
8 changed files
with
60 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
Cypress.Commands.add('unlockSubmission', (unlockReason) => { | ||
// click on the unlock button, type in reason and confirm | ||
cy.findByRole('button', { name: 'Unlock submission', timeout: 5_000 }).click() | ||
cy.findAllByTestId('modalWindow').eq(1).should('be.visible') | ||
cy.get('#unlockSubmitModalInput').type( | ||
unlockReason || 'Unlock submission reason.' | ||
) | ||
cy.findByRole('button', { name: 'Unlock' }).click() | ||
|
||
cy.findByRole('button', { name: 'Unlock submission'}).should( | ||
'be.disabled', {timeout: 50_000 } | ||
) | ||
cy.findAllByTestId('modalWindow').eq(1).should('be.hidden') | ||
|
||
// Unlock banner for CMS user to be present with correct data. | ||
cy.findByTestId('unlockedBanner').should('exist') | ||
}) |