Skip to content

Commit

Permalink
Try forcing viewport on browser args
Browse files Browse the repository at this point in the history
  • Loading branch information
santam85 committed Aug 14, 2023
1 parent 1fd30be commit 5b8cae0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions apps/ng2-charts-e2e/cypress.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ export default defineConfig({

on('before:browser:launch', (browser, launchOptions) => {
if (browser.name === 'electron') {
// fullPage screenshot size is 1400x1200
launchOptions.preferences['width'] = 800
launchOptions.preferences['width'] = 600
}

return launchOptions
Expand Down

0 comments on commit 5b8cae0

Please sign in to comment.