Skip to content

Commit

Permalink
test(frame): fix url fragment test
Browse files Browse the repository at this point in the history
by using an actual fragment

references puppeteer#6398
  • Loading branch information
campersau committed Sep 14, 2020
1 parent 03e41da commit 8c05ba3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/assets/frames/one-frame-url-fragment.html
@@ -1 +1 @@
<iframe src='./frame.html&test=fragment'></iframe>
<iframe src='./frame.html?param=value#fragment'></iframe>
2 changes: 1 addition & 1 deletion test/frame.spec.ts
Expand Up @@ -263,7 +263,7 @@ describe('Frame specs', function () {

expect(page.frames().length).toBe(2);
expect(page.frames()[1].url()).toBe(
server.PREFIX + '/frames/frame.html&test=fragment'
server.PREFIX + '/frames/frame.html?param=value#fragment'
);
});
});
Expand Down

0 comments on commit 8c05ba3

Please sign in to comment.