Skip to content

Commit 9938c5a

Browse files
committed
update reporter
1 parent c19a3db commit 9938c5a

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

test/utils/image-reporter-standalone.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ const targetDirectories = [
4242
'./test/__image_snapshots__/__diff_output__/',
4343
];
4444
targetDirectories.forEach((targetDirectory) => {
45+
if (!fs.existsSync(targetDirectory)) {
46+
return;
47+
}
48+
4549
fs.readdirSync(targetDirectory, { withFileTypes: true }).forEach((dirent) => {
4650
if (!dirent.isFile()) return;
4751
const path = `images/${dirent.name}`;

test/utils/open-addon.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
export const openAddon = async (page) => {
22
await page.goto(process.env.SHEET_URL);
33

4-
await page.waitForTimeout(5000); // pause for 3 seconds
4+
await page.waitForTimeout(10000); // pause for 10 seconds
5+
// take screenshot
6+
await page.screenshot({
7+
path: 'test/__image_snapshots__/__diff_output__/main-spreadsheet-page.png',
8+
});
59
await page.click('a:nth-child(2)'); // click on signin button
610

711
await page.waitForSelector('input[name="identifier"]', { visible: true });

0 commit comments

Comments
 (0)