Select: Add data-testid to Input (#87105)

* Select: Add custom input component

* Forward data-testid

* Add input selector

* Props check
This commit is contained in:
Alex Khomenko
2024-04-30 14:04:58 +03:00
committed by GitHub
parent ec6f59a678
commit 7f1b2ef205
4 changed files with 20 additions and 2 deletions
+2 -2
View File
@@ -72,9 +72,9 @@ describe('Loki query builder', () => {
// Add labels to remove error
e2e.components.QueryBuilder.labelSelect().should('be.visible').click();
// wait until labels are loaded and set on the component before starting to type
e2e.components.QueryBuilder.labelSelect().children('div').children('input').type('i');
e2e.components.QueryBuilder.inputSelect().type('i');
cy.wait('@labelsRequest');
e2e.components.QueryBuilder.labelSelect().children('div').children('input').type('nstance{enter}');
e2e.components.QueryBuilder.inputSelect().type('nstance{enter}');
e2e.components.QueryBuilder.matchOperatorSelect()
.should('be.visible')
.click({ force: true })