Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Launch remains in the state of In-Progress when using plugins such as retryTo #18

Closed
nirmal-darji opened this issue Oct 31, 2023 · 3 comments

Comments

@nirmal-darji
Copy link

I am using retryTo plugin in the test and below is the example

 await retryTo(() => {
      I.waitForVisible(elementLocator);
      I.click(elementLocator);
      I.waitForInvisible(elementLocator, 25);
    }, 2);

So in the first go it waits for the element it clicks on it and then wait to disappear that element and waits for 25 seconds for it.
After 25 seconds if its still visible it will perform the same steps again and now it worked fine.

The issue is in the first attempt ideally it should complete the sub-step I.waitForInvisible(elementLocator, 25); after 25 seconds but it remains "In-progress" and starts with the second attempt. Since that sub-step remained "In-Progress", it also results launch to remain in the state of "In-Progress"

Can anyone please help me with that?

ElementVisibility

@nirmal-darji
Copy link
Author

Issue is also observed for one more plugin- tryTo()

async isGPKEVisible(gkpeNotification: string): Promise<boolean> {
     return await tryTo(() => I.see(gkpeNotification));
}

@nirmal-darji
Copy link
Author

Hi @kobenguyent ,

Hope you are doing fine :)

Would it be possible for you to merge the open PR- #19?

I am eagerly looking forward to incorporating this update into my testing workflow on the Report Portal, and your assistance in merging the PR would be greatly appreciated.

@kobenguyent
Copy link
Owner

thanks for your report! Tested with latest release, looked good! Closed this issue for now!

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

No branches or pull requests

2 participants