We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8b4505c commit 3aeba35Copy full SHA for 3aeba35
.github/workflows/test.yml
@@ -6,7 +6,7 @@ on:
6
pull_request:
7
jobs:
8
test:
9
- runs-on: ubuntu-latest
+ runs-on: macos-latest
10
steps:
11
- name: Checkout 🍔🍟🥤
12
uses: actions/checkout@v4
test/puppeteer.js
@@ -85,7 +85,7 @@ async function test(port) {
85
if (screenshot) {
86
const dir = 'screenshots';
87
fs.mkdirSync(dir, { recursive: true });
88
- const name = /\/([a-z0-9_-]+).html/.exec(url);
+ const name = /\/([a-z0-9_-]+).html/.exec(url)[1];
89
const path = `${dir}/${name}.png`;
90
await page.screenshot({path});
91
}
0 commit comments