File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,10 @@ const targetDirectories = [
4242 './test/__image_snapshots__/__diff_output__/' ,
4343] ;
4444targetDirectories . 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 } ` ;
Original file line number Diff line number Diff line change 11export 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 } ) ;
You can’t perform that action at this time.
0 commit comments