Skip to content

[Bug]: Picked snapshot contains link:// for url's #38288

@cpAdm

Description

@cpAdm

Version

1.56

Steps to reproduce

  1. Go to https://trace.playwright.dev/?trace=https://demo.playwright.dev/reports/todomvc/data/fa874b0d59cdedec675521c21124e93161d66533.zip
  2. Click 'Pick locator' and select part of the snapshot

Expected behavior

To have the injected link:// for the /urls by playwright removed.

Actual behavior

The generated snapshot will actually not match due the link:// part:
Image

Additional context

(After the fix, the snapshot should still be highlighted in the iframe)

Environment

System:
  OS: Linux 6.6 Ubuntu 24.04.2 LTS 24.04.2 LTS (Noble Numbat)
  CPU: (12) x64 Intel(R) Core(TM) i5-10505 CPU @ 3.20GHz
  Memory: 10.39 GB / 23.47 GB
  Container: Yes
Binaries:
  Node: 22.15.1 - /usr/bin/node
  Yarn: 1.22.22 - /usr/bin/yarn
  npm: 10.9.2 - /usr/bin/npm
  pnpm: 10.15.0 - /usr/bin/pnpm
npmPackages:
  @playwright/test: ^1.56.0 => 1.56.0

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions