Skip to content

Commit 20dd411

Browse files
authored
fix(fixture): Add annotation to playwright playwrightTest
1 parent 2a6448d commit 20dd411

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

UPCOMING.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Patch
2+
3+
#### Fix
4+
5+
- Add annotation to `playwrightTest`, not our new `test`

src/fixtures.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export const test = playwrightTest.extend< FrameworkTest >({
5757
url = (matchUrlHostToEnv(hosts, url) ?? url);
5858

5959
// Add URL as annotation
60-
test.info().annotations.push({type: 'goto', description: url});
60+
playwrightTest.info().annotations.push({type: 'goto', description: url});
6161

6262
// Carry on with the original page.goto
6363
return goto(url, options);

0 commit comments

Comments
 (0)