Skip to content

Conversation

@4manasa
Copy link
Contributor

@4manasa 4manasa commented Nov 13, 2024

No description provided.

)
]);
await expect(page.locator('CircularProgress')).not.toBeVisible();
await page.waitForTimeout(5000);
Copy link
Contributor

Choose a reason for hiding this comment

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

Don't understand why you would want to add timeouts...seems like that would make the tests flakey. We should discuss.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

These are the existing tests which we added in components repo.I don't see any failures with above code.

Copy link
Contributor

Choose a reason for hiding this comment

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

Waiting on Promise was making tests flaky in test VM, so we decided to stick with the elements visible on screen thats why added circular progress check. Just to be sure the element is reflected on ui we are waiting for 5 seconds.

@4manasa 4manasa merged commit 319fd2f into main Nov 14, 2024
5 checks passed
@4manasa 4manasa deleted the mod/tor/updateTests branch November 14, 2024 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants