element-web/cypress
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
..
e2e Add safety to the spotlight search dialog (#9177) 2022-08-11 22:26:25 +00:00
fixtures Move spaces tests from Puppeteer to Cypress (#8645) 2022-05-26 10:19:00 +01:00
plugins cypress: up the rate limit values for the synapse container (#9166) 2022-08-11 14:08:41 +01:00
support Cypress test stability improvements (#9156) 2022-08-10 09:40:17 +01:00
global.d.ts Delabs Show current avatar and name for users in message history (#8764) 2022-07-04 19:37:48 +00:00
tsconfig.json Spike AXE A11Y testing in Cypress (#9111) 2022-08-01 08:31:14 +01:00