Skip to content

Commit a7c166a

Browse files
committed
Playwright javascript framework
1 parent 3ed65c2 commit a7c166a

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

Diff for: Playwright-JavaScript/pages/homepage.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ exports.HomePage = class HomePage {
1818

1919
async goto() {
2020
await this.page.setViewportSize({ width: 1366, height: 728 })
21-
if (process.env.ENV.toUpperCase == 'QA') {
21+
if (process.env.ENV.toUpperCase() == 'QA') {
2222
await this.page.goto(process.env.QA_URL);
23-
} if (process.env.ENV.toUpperCase == 'STAGE') {
23+
} else if (process.env.ENV.toUpperCase() == 'STAGE') {
2424
await this.page.goto(process.env.STAGING_URL);
2525
}
2626
}

0 commit comments

Comments
 (0)