Skip to content

Commit

Permalink
Set viewport size for web app test
Browse files Browse the repository at this point in the history
  • Loading branch information
hoangdat committed Aug 6, 2024
1 parent 3bfa649 commit 9cf25f5
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ public void setUp(SupportedPlatform supportedPlatform) {
case FIREFOX -> playwright.firefox().launch(new BrowserType.LaunchOptions().setHeadless(runHeadlessTest));
default -> throw new UnsupportedPlatformException();
};
browserContext = browser.newContext();
browserContext = browser.newContext(
new Browser.NewContextOptions().setViewportSize(1920, 1080));
page = browserContext.newPage();
}

Expand Down

0 comments on commit 9cf25f5

Please sign in to comment.