Skip to content

Commit

Permalink
chore: show error when opening newer trace with old viewer
Browse files Browse the repository at this point in the history
  • Loading branch information
yury-s committed Jul 20, 2024
1 parent 42e62c6 commit bf3c36c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Binary file added tests/assets/trace-from-the-future.zip
Binary file not shown.
5 changes: 5 additions & 0 deletions tests/library/trace-viewer.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,11 @@ test('should open simple trace viewer', async ({ showTraceViewer }) => {
]);
});

test('should complain about newer version of trace in old viewer', async ({ showTraceViewer, asset }, testInfo) => {
const traceViewer = await showTraceViewer([asset('trace-from-the-future.zip')]);
await expect(traceViewer.page.getByText('The trace was created by a newer version of Playwright and is not supported by this version of the viewer.')).toBeVisible();
});

test('should contain action info', async ({ showTraceViewer }) => {
const traceViewer = await showTraceViewer([traceFile]);
await traceViewer.selectAction('locator.click');
Expand Down

0 comments on commit bf3c36c

Please sign in to comment.