Fix flaky Cypress test (#20232)

This commit is contained in:
ktmouk 2023-10-09 20:35:03 +09:00 committed by GitHub
parent f5e0171dce
commit ddf045ac68
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -191,12 +191,12 @@ describe('Comment on articles', () => {
cy.get('@commentTextArea').type('Some text @se');
verifyComboboxMode();
cy.get('@commentTextArea').type('{backspace}{backspace}');
cy.get('@commentTextArea').type('{backspace}{backspace}{backspace}');
});
cy.findByRole('option', { name: /@search_user_1/ }).should('not.exist');
cy.get('@commentTextArea').type('se');
cy.get('@commentTextArea').type('@se');
cy.findByRole('option', { name: /@search_user_1/ }).should('exist');
});