element-web/cypress/e2e
Travis Ralston 8db7766a40
Add safety to the spotlight search dialog (#9177)
* Add safety to the spotlight search dialog

Fixes https://github.com/vector-im/element-web/issues/22851

This test was triggering the mentioned bug only occasionally because it was dependent on when the search settled: if it settled early then the length was wrong. In testing, the dialog was caught multiple times to have passed the length chat but update to show duplicated results before the test closed the client, indicating a race condition within the tests.

To fix this, we just make sure everything settles before moving on. We do this on unaffected tests too to ensure they don't regress later.

The affected test was "should find group DMs by usernames or user ids".

* Update cypress/e2e/spotlight/spotlight.spec.ts

Co-authored-by: Robin <robin@robin.town>

Co-authored-by: Robin <robin@robin.town>
2022-08-11 22:26:25 +00:00
..
create-room Don't enumerate Cypress tests (#9123) 2022-08-01 17:59:20 +00:00
crypto Start DM on first message (#8612) 2022-08-04 08:19:52 +02:00
editing Fix dismissing edit composer when change was undone (#9109) 2022-08-02 14:54:40 +01:00
lazy-loading Make percy snapshots for user onboarding more reliable (#9132) 2022-08-08 13:17:04 +02:00
location Move pin drop out of labs (PSG-664) (#9135) 2022-08-08 10:57:38 +02:00
login Don't enumerate Cypress tests (#9123) 2022-08-01 17:59:20 +00:00
polls Don't enumerate Cypress tests (#9123) 2022-08-01 17:59:20 +00:00
register Don't enumerate Cypress tests (#9123) 2022-08-01 17:59:20 +00:00
regression-tests Fixes around URL tooltips and in-app matrix.to link handling (#9139) 2022-08-09 15:37:55 +01:00
right-panel Show a back button when viewing a space member (#9095) 2022-07-25 11:46:19 +00:00
room-directory Don't enumerate Cypress tests (#9123) 2022-08-01 17:59:20 +00:00
settings Migrate the hidden read receipts flag to new "send read receipts" option (#9141) 2022-08-08 13:48:28 -06:00
spaces Fix space panel subspace indentation going missing (#9167) 2022-08-10 16:29:53 +01:00
spotlight Add safety to the spotlight search dialog (#9177) 2022-08-11 22:26:25 +00:00
threads Don't enumerate Cypress tests (#9123) 2022-08-01 17:59:20 +00:00
timeline Add even more stability to view source test case (#9176) 2022-08-11 15:26:22 -06:00
toasts Port remaining Puppeteer tests over to Cypress (#9104) 2022-07-29 14:03:25 +00:00
update Don't enumerate Cypress tests (#9123) 2022-08-01 17:59:20 +00:00
user-menu Don't enumerate Cypress tests (#9123) 2022-08-01 17:59:20 +00:00
user-onboarding Make percy snapshots for user onboarding more reliable (#9132) 2022-08-08 13:17:04 +02:00
user-view Don't enumerate Cypress tests (#9123) 2022-08-01 17:59:20 +00:00
widgets Don't enumerate Cypress tests (#9123) 2022-08-01 17:59:20 +00:00