Skip to content

Conversation

@beatfactor
Copy link

No description provided.

export default class WaitForLoadScreen {
async command(this: NightwatchClient, expectedTitle: string) {
browser.waitUntil(async () => {
await browser.waitUntil(async () => {
Copy link
Owner

@reallymello reallymello May 25, 2023

Choose a reason for hiding this comment

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

I tried that too, but it acts the same. Even if I also add an await on this command in the test itself in addition.

Copy link
Author

Choose a reason for hiding this comment

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

I also encountered some issues with waitUntil which we need fixed, but eventually I found a format that works. I used it in some of our plugins, e.g. here: https://github.com/nightwatchjs/vite-plugin-nightwatch/blob/main/nightwatch/commands/mountReactComponent.js#L121

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.

2 participants