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

Update problemCommand.ts #100

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

beatfactor
Copy link

No description provided.

@@ -2,7 +2,7 @@ import { NightwatchClient, NightwatchExpectResult } from 'nightwatch';

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