Chore: Remove some hardcoded waits from e2e tests (#75515)

remove some hardcoded waits
This commit is contained in:
Ashley Harrison
2023-09-27 14:25:04 +01:00
committed by GitHub
parent 163b0d182b
commit e82e1593d8
8 changed files with 1 additions and 21 deletions

View File

@@ -69,12 +69,10 @@ describe('Loki query builder', () => {
e2e.components.QueryBuilder.labelSelect().should('be.visible').click();
// wait until labels are loaded and set on the component before starting to type
cy.wait('@labelsRequest');
cy.wait(100);
e2e.components.QueryBuilder.labelSelect().type('instance{enter}');
e2e.components.QueryBuilder.matchOperatorSelect().should('be.visible').click().type('=~{enter}');
e2e.components.QueryBuilder.valueSelect().should('be.visible').click();
cy.wait('@valuesRequest');
cy.wait(100);
e2e.components.QueryBuilder.valueSelect().type('instance1{enter}').type('instance2{enter}');
cy.contains(MISSING_LABEL_FILTER_ERROR_MESSAGE).should('not.exist');
cy.contains(finalQuery).should('be.visible');