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

Fix bug in TheiaDialog page object #12753

Merged
merged 1 commit into from
Jul 26, 2023

Conversation

tortmayr
Copy link
Contributor

What it does

Fixes a bug with the TheiaDialog.waitUntilMainButtonIsEnabled method not working as expected.
Calling the method resulted in an infinite timeout because this was used inside of the pageFunction. The pageFunction is executed inside the browser where the TheiaDialog page objectis not available and therefore it was undefined.
Call waitUntilMainButtonIsEnabled in TheiaExplorView.renameNode to ensure that the method is covered by the test case execution.

How to test

This change is directly tested by the playwright test suite.

Review checklist

Reminder for reviewers

Fix bug with the `TheiaDialog.waitUntilMainButtonIsEnabled` method not working as expected (infinite timeout).
Call `waitUntilMainButtonIsEnabled` in `TheiaExplorView.renameNode` to ensure that the method is covered by the test case execution.
@tortmayr tortmayr requested a review from planger July 25, 2023 09:38
Copy link
Contributor

@planger planger left a comment

Choose a reason for hiding this comment

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

Thanks, looks good to me! 👍

@vince-fugnitto vince-fugnitto added ci issues related to CI / tests playwright issues related to playwright tests labels Jul 25, 2023
@tortmayr tortmayr merged commit 0860f57 into eclipse-theia:master Jul 26, 2023
6 checks passed
@tortmayr tortmayr deleted the tortmayr/plageobject branch July 26, 2023 11:18
@vince-fugnitto vince-fugnitto added this to the 1.40.0 milestone Jul 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci issues related to CI / tests playwright issues related to playwright tests
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants