Experiment with trying not to wait for a request to the server that will never happen (partial attempt at fixing #603).

This commit is contained in:
Ximon Eighteen
2021-07-12 17:03:47 +02:00
parent bee105eabe
commit e024457a50
@@ -338,8 +338,11 @@ describe('Config File Users with TA', () => {
})
// attempting to create a ROA on ca_readonly should fail
cy.get('.el-select-dropdown__wrap.el-scrollbar__wrap > ul').contains('ca_readonly').click()
cy.wait('@statusRO')
cy.url().should('not.contain', '#/cas/ca_readonly').then((unused) => {
// only change the current CA and wait for an update from the backend if the current CA isn't the one we want
cy.get('.el-select-dropdown__wrap.el-scrollbar__wrap > ul').contains('ca_readonly').click()
cy.wait('@statusRO')
})
cy.get('#tab-roas').click()
cy.contains('Add ROA').click()
cy.get('div[role="dialog"]')