Skip to content

Commit

Permalink
Fix a part oppia#17761 : Headless mode failing on some acceptance tes…
Browse files Browse the repository at this point in the history
…ts. (oppia#19860)

* Update e2e_lighthouse_performance_acceptance_tests.yml

* Update e2e_lighthouse_performance_acceptance_tests.yml

* Acceptance tests viewport adjustment
  • Loading branch information
Akhilesh-max authored Mar 4, 2024
1 parent e57a95b commit 4be7303
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ module.exports = class baseUser {
.then(async(browser) => {
this.browserObject = browser;
this.page = await browser.newPage();
await this.page.setViewport({ width: 0, height: 0 });
await this.page.setViewport({ width: 1920, height: 1080 });
this.page.on('dialog', async(dialog) => {
const alertText = dialog.message();
if (acceptedBrowserAlerts.includes(alertText)) {
Expand Down

0 comments on commit 4be7303

Please sign in to comment.