[playwright] Update documentation #13489
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What it does
Note: this goes along with this
theia-playwright-template
PR:eclipse-theia/theia-playwright-template#9
Since a recent enhancement/refactoring of @theia/playwright [1], to permit using it in Theia Electron applications, the way to load an application has changed. This commit is an attempt to update the examples that are part of the documentation. I validated the changes in the "theia-playwright-template" repository, and so I have adapted the sample code to that repo's linting rules (using single quotes instead of double).
It's possible that other things have changed, that I have not yet encountered, but this should be a good step forward, at least for those just getting started integrating playwright to test their Theia-based app.
[1]: "Basic playwright electron support (#12207)"
487e92b
How to test
This is mostly a documentation change. I guess it could be tested after the PR listed above is merged, reproducing the documentation's examples using the latest "theia-playwright-template" code. But perhaps a visual inspection could be enough.
Follow-ups
Review checklist
Reminder for reviewers