Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Make cypress tests for spotlight less flaky #8856

Merged
merged 2 commits into from
Jun 17, 2022

Conversation

justjanne
Copy link
Contributor

@justjanne justjanne commented Jun 16, 2022

Type: Task
Related: #8707


This change is marked as an internal change (Task), so will not be included in the changelog.

@justjanne justjanne added the T-Task Refactoring, enabling or disabling functionality, other engineering tasks label Jun 16, 2022
@justjanne justjanne marked this pull request as ready for review June 16, 2022 16:16
@justjanne justjanne requested a review from a team as a code owner June 16, 2022 16:16
// our debouncing logic only starts the search after a short timeout,
// so we wait a few milliseconds.
cy.wait(300);
cy.get(".mx_Spinner").should("not.exist").then(() => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cypress doesn't really behave like a promise interface, despite exposing a promise interface, but it doesn't hurt anything.

In theory should be able to just stack the calls and it'll figure it out.

@justjanne justjanne merged commit 8cceda6 into develop Jun 17, 2022
@justjanne justjanne deleted the justjanne/task/spotlight-tests-flaky branch June 17, 2022 09:08
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
T-Task Refactoring, enabling or disabling functionality, other engineering tasks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants