From e024457a5007c799209f1b4cc55dff57c01c19bd Mon Sep 17 00:00:00 2001 From: Ximon Eighteen <3304436+ximon18@users.noreply.github.com> Date: Mon, 12 Jul 2021 17:03:47 +0200 Subject: [PATCH] Experiment with trying not to wait for a request to the server that will never happen (partial attempt at fixing #603). --- tests/ui/cypress/specs/multi_user_config_file_with_ta.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/ui/cypress/specs/multi_user_config_file_with_ta.js b/tests/ui/cypress/specs/multi_user_config_file_with_ta.js index 6b92fd75..8a4e7a37 100644 --- a/tests/ui/cypress/specs/multi_user_config_file_with_ta.js +++ b/tests/ui/cypress/specs/multi_user_config_file_with_ta.js @@ -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"]')