This commit is contained in:
Karol 2023-01-09 10:26:09 +01:00 committed by GitHub
parent 3f94803c79
commit 91478a8b6d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -44,7 +44,7 @@ Cypress.Commands.add("fillAutocompleteSelect", (selectSelector, option) => {
.first()
.then(detachedOption => {
cy.get(selectSelector).clear();
cy.get(selectSelector).type(option);
cy.get(selectSelector).type(option, { delay: 10 });
cy.wrap(detachedOption).should(det => {
Cypress.dom.isDetached(det);
});