-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Fix some flaky ui tests #16430
Fix some flaky ui tests #16430
Conversation
….pressSequentially()'
…, to be able to properly await it
Thanks for making a pull request to jupyterlab! |
.pressSequentially( | ||
'Not active\nActive line with >>selected text<<\nNot active' | ||
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would expect fill
to work here. Does it not?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should, yes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I updated it
Co-authored-by: Michał Krassowski <5832902+krassowski@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you so much for working on it @brichet!
Nice, thanks @brichet! |
@meeseeksdev please backport to 4.2.x |
Co-authored-by: Nicolas Brichet <32258950+brichet@users.noreply.github.com>
* Replace deprecated 'Locator.press()' with 'Locator.fill()' or Locator.pressSequentially()' * Set 'docmanager:open' and 'docmanager:new-untitled' commands as async, to be able to properly await it * Use to fill the cell content, to avoid backward incompatibility * Update galata/test/jupyterlab/texteditor.test.ts Co-authored-by: Michał Krassowski <5832902+krassowski@users.noreply.github.com> * Use preferably 'Locator.fill()' --------- Co-authored-by: Michał Krassowski <5832902+krassowski@users.noreply.github.com>
This PR may fix some flaky UI tests.
Locator.type()
withLocator.fill()
, to try to fix some tests writing in the cell input.For example
test/jupyterlab/notebook-max-outputs.test.ts:37:5 › Don't limit cell outputs if input is requested
often fails due to indentation error in cell input.In the screenshot above, the input should not be indented
'docmanager:open'
asasync
, according to VSCode warning "This may be converted to an async function.ts(80006)".Not sure to understand why, but it seems to fix (locally)
test/jupyterlab/settings.test.ts:129:7 › change font-size › should Increase Content Font Size
andtest/jupyterlab/settings.test.ts:129:7 › change font-size › should Decrease Content Font Size
, which also often fails withe the following error:References
related to #14947
Code changes
None
User-facing changes
None
Backwards-incompatible changes
None