Skip to content

Commit

Permalink
remove datetime from SVG snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanGoncharov committed Sep 30, 2024
1 parent b296a5e commit 800497b
Show file tree
Hide file tree
Showing 13 changed files with 15 additions and 13 deletions.
1 change: 1 addition & 0 deletions cspell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ ignorePaths:
- demo/presets
- worker/viz.cpp
- worker/Dockerfile
- tests/*-snapshots/
dictionaries:
- html

Expand Down
5 changes: 3 additions & 2 deletions tests/PageObjectModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,9 @@ class PlaywrightVoyagerPage {
}

async getGraphSVG(): Promise<string> {
const svg = await this.svgContainer.innerHTML();
return format(svg, { parser: 'html' });
let svg = await this.svgContainer.innerHTML();
svg = await format(svg, { parser: 'html' });
return svg.replace(/id="viewport-.*?"/, 'id="viewport-{datetime}"');
}

async submitSDL(sdl: string) {
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion tests/demo.spec.ts-snapshots/demo-graph-Demo-linux.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion tests/demo.spec.ts-snapshots/github-graph-Demo-linux.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion tests/demo.spec.ts-snapshots/yelp-graph-Demo-linux.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 800497b

Please sign in to comment.