Skip to content

Commit

Permalink
feat: Fix Firefox screenshots (#95)
Browse files Browse the repository at this point in the history
* Fix firefox screenshots

* Swap map to forEach
  • Loading branch information
bearfriend committed Jul 26, 2023
1 parent 957f1fd commit ab988d9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/browser/vdiff.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import { chai, expect } from '@open-wc/testing';
import { executeServerCommand } from '@web/test-runner-commands';

// start loading fonts early
[...document.fonts].forEach(font => font.load());

let test;

/* eslint-disable no-undef, no-invalid-this */
Expand Down
4 changes: 4 additions & 0 deletions src/server/pause.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ test.pause = new Promise(r => test.start = r);

const controls = `
<style>
.screenshot * {
scrollbar-width: none;
}
.screenshot ::-webkit-scrollbar {
display: none;
}
Expand Down

0 comments on commit ab988d9

Please sign in to comment.