You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
widgetLoadingContainer - Locator of an UI element (could be single or many)
public async waitLoadersHidden() {
try {
await this.widgetLoadingContainer.first().waitFor();
} catch (error) {}
for (const dot of await this.widgetLoadingContainer.all()) {
await dot.waitFor({ state: 'hidden' });
}
}
Here we wait for first element is visible (default action time = 5 seconds)
Once first element is 'visible' -> we take all of them and wait each one has 'hidden' state immediately
If element wasn't 'visible' during 5 seconds -> we take all of them and wait each one has 'hidden' state
Sometimes element(s) is not visible and it's ok.
But in this cases try is failed -> the step is also marked as 'failed' in the reporting (when by fact it's passed).
Steps
[Run a test with step that has failed action/verification surrounding with try/catch block]
Expected
The step is marked as passed
Actual
The step is marked as failed
The text was updated successfully, but these errors were encountered:
System info
Source code
widgetLoadingContainer - Locator of an UI element (could be single or many)
Here we wait for first element is visible (default action time = 5 seconds)
Once first element is 'visible' -> we take all of them and wait each one has 'hidden' state immediately
If element wasn't 'visible' during 5 seconds -> we take all of them and wait each one has 'hidden' state
Sometimes element(s) is not visible and it's ok.
But in this cases try is failed -> the step is also marked as 'failed' in the reporting (when by fact it's passed).
Steps
Expected
The step is marked as passed
Actual
The step is marked as failed
The text was updated successfully, but these errors were encountered: