Skip to content

Commit

Permalink
chore: roll test runner to 1.49.0-alpha-2024-10-20 (#541)
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelfeldman authored Oct 21, 2024
1 parent c87bf0c commit 6b03dea
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 32 deletions.
50 changes: 23 additions & 27 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@
},
"devDependencies": {
"@babel/preset-typescript": "^7.23.2",
"@playwright/test": "1.48.0-beta-1729066602000",
"@playwright/test": "1.49.0-alpha-2024-10-20",
"@types/babel__core": "^7.20.3",
"@types/babel__helper-plugin-utils": "^7.10.2",
"@types/babel__traverse": "^7.20.3",
Expand Down
8 changes: 4 additions & 4 deletions tests/embedded-trace-viewer.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ test('should show tracer when test runs', async ({ activate }) => {

const webview = await singleWebViewByPanelType(vscode, 'playwright.traceviewer.view')!;

const listItem = webview.frameLocator('iframe').getByTestId('actions-tree').getByRole('listitem');
const treeItem = webview.frameLocator('iframe').getByTestId('actions-tree').getByRole('treeitem');
await expect(
listItem,
treeItem,
'action list'
).toHaveText([
/Before Hooks[\d.]+m?s/,
Expand Down Expand Up @@ -377,7 +377,7 @@ test('should restore webview state when moving', async ({ activate }) => {

await vscode.changeVisibility(webview, 'visible');

const listItem = webview.frameLocator('iframe').getByTestId('actions-tree').getByRole('listitem');
const listItem = webview.frameLocator('iframe').getByTestId('actions-tree').getByRole('treeitem');
await expect(
listItem,
'action list'
Expand Down Expand Up @@ -408,7 +408,7 @@ test('should open source location in vscode', async ({ activate }) => {

const webview = await singleWebViewByPanelType(vscode, 'playwright.traceviewer.view')!;
const iframe = webview.frameLocator('iframe');
await iframe.getByTestId('actions-tree').getByRole('listitem').filter({ hasText: 'page.setContent' }).click();
await iframe.getByTestId('actions-tree').getByRole('treeitem').filter({ hasText: 'page.setContent' }).click();
await iframe.getByTitle('Source').click();
await iframe.getByTitle('Open in VS Code').click();

Expand Down

0 comments on commit 6b03dea

Please sign in to comment.