-
Notifications
You must be signed in to change notification settings - Fork 22
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
Configure integration tests with Playwright #126
Conversation
07de916
to
b8d8d9b
Compare
b8d8d9b
to
1c28c85
Compare
e01c5b0
to
e8df6c7
Compare
Should this PR and its commit (message) link to Issue #34 (ready for review)? |
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.
Thanks!
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.
Yes, I get the same error, which is weird because it was working fine last week. @PatrickTasse could you please look into this? |
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.
Thanks for the contribution of the playwright tests. I think it's great addition. I think we can work in merging this as-is (after resolving the remaining comments). However, we should plan follow-ups simplify the steps for users to run setup and tests.
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 missed to request changes before and accidentally press approved.
Is it occasionally or consistently failing for you? There seems to be some unexplained flakiness to the tests, but it's not failing for me at all today. |
Consistently, for me locally so far. |
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.
In case this comment is applicable; thanks.
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.
Nit left. And I still get that failing test despite setting --retries=3
or retrying manually. But we could consider merging this initial PR if, say, at least two other setups pass all tests (in my opinion; more welcome).
All tests are passing for me locally today. |
Well, only the first time I ran them earlier. That failing test now consistently fails again. |
Add and configure Playwright in vscode-trace-extension package. Add extension-test.spec.ts with a few simple tests. Ignore and exclude test files and folders from build and version control. Partially fixes Issue eclipse-cdt-cloud#34 Signed-off-by: Patrick Tasse <[email protected]>
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.
LGTM now, thanks!
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.
Looks good to me. Thanks for contributing the Playwright tests. We can build on that for more automated tests.
test('Open Trace from Explorer', async ({ page }) => { | ||
await page.getByRole('treeitem', { name: '202-bug-hunt' }).locator('a').click(); | ||
await page.getByRole('treeitem', { name: 'cat-kernel' }).locator('a').click({ button: 'right' }); | ||
await page.getByRole('menuitem', { name: 'Open with Trace Viewer' }).hover(); |
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.
This line fixes the intermittent failures when running it on my computer. Let's leep it in mind when implementing more tests in later commits.
Add and configure Playwright in vscode-trace-extension package.
Add extension-test.spec.ts with a few simple tests.
Ignore and exclude test files and folders from build and version control.
Partially fixes Issue #34