Skip to content

Commit

Permalink
fix: add --no-gpu to fix puppeteer regression in alpine
Browse files Browse the repository at this point in the history
  • Loading branch information
danistrebel committed Dec 20, 2024
1 parent 9a3a12b commit 6c3ada5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Given('I navigate to the authorize page', async function() {
this.browser = await puppeteer.launch({
ignoreHTTPSErrors: true,
headless: true,
args: ["--no-sandbox"]
args: ["--no-sandbox", "--disable-gpu"]
})
this.page = await this.browser.newPage()
return await this.page.goto('https://' + hostname + basePath + '/authorize?client_id=' + this.apickli.scenarioVariables.clientId
Expand All @@ -49,7 +49,7 @@ Given('I navigate to the authorize page with query params that must be sanitized
this.browser = await puppeteer.launch({
ignoreHTTPSErrors: true,
headless: true,
args: ["--no-sandbox"]
args: ["--no-sandbox", "--disable-gpu"]
})
this.page = await this.browser.newPage()
return await this.page.goto('https://' + hostname + basePath + '/authorize?client_id=' + ' ' + this.apickli.scenarioVariables.clientId
Expand All @@ -62,7 +62,7 @@ Given('I navigate to the authorize page with an invalid response type', async fu
this.browser = await puppeteer.launch({
ignoreHTTPSErrors: true,
headless: true,
args: ["--no-sandbox"]
args: ["--no-sandbox", "--disable-gpu"]
})
this.page = await this.browser.newPage()
return await this.page.goto('https://' + hostname + basePath + '/authorize?client_id=' + this.apickli.scenarioVariables.clientId
Expand All @@ -75,7 +75,7 @@ Given('I navigate to the authorize page without a scope parameter', async functi
this.browser = await puppeteer.launch({
ignoreHTTPSErrors: true,
headless: true,
args: ["--no-sandbox"]
args: ["--no-sandbox", "--disable-gpu"]
})
this.page = await this.browser.newPage()
return await this.page.goto('https://' + hostname + basePath + '/authorize?client_id=' + this.apickli.scenarioVariables.clientId
Expand All @@ -88,7 +88,7 @@ Given('I navigate to the authorize page without a state parameter', async functi
this.browser = await puppeteer.launch({
ignoreHTTPSErrors: true,
headless: true,
args: ["--no-sandbox"]
args: ["--no-sandbox", "--disable-gpu"]
})
this.page = await this.browser.newPage()
return await this.page.goto('https://' + hostname + basePath + '/authorize?client_id=' + this.apickli.scenarioVariables.clientId
Expand All @@ -102,7 +102,7 @@ if (isPkceEnabled) {
this.browser = await puppeteer.launch({
ignoreHTTPSErrors: true,
headless: true,
args: ["--no-sandbox"]
args: ["--no-sandbox", "--disable-gpu"]
})
this.page = await this.browser.newPage()
return await this.page.goto('https://' + hostname + basePath + '/authorize?client_id=' + this.apickli.scenarioVariables.clientId
Expand All @@ -114,7 +114,7 @@ if (isPkceEnabled) {
this.browser = await puppeteer.launch({
ignoreHTTPSErrors: true,
headless: true,
args: ["--no-sandbox"]
args: ["--no-sandbox", "--disable-gpu"]
})
this.page = await this.browser.newPage()
return await this.page.goto('https://' + hostname + basePath + '/authorize?client_id=' + this.apickli.scenarioVariables.clientId
Expand All @@ -126,7 +126,7 @@ if (isPkceEnabled) {
this.browser = await puppeteer.launch({
ignoreHTTPSErrors: true,
headless: true,
args: ["--no-sandbox"]
args: ["--no-sandbox", "--disable-gpu"]
})
this.page = await this.browser.newPage()
return await this.page.goto('https://' + hostname + basePath + '/authorize?client_id=' + this.apickli.scenarioVariables.clientId
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Given('I navigate to the authorize page', async function() {
this.browser = await puppeteer.launch({
ignoreHTTPSErrors: true,
headless: true,
args: ["--no-sandbox"]
args: ["--no-sandbox", "--disable-gpu"]
})
this.page = await this.browser.newPage()
return await this.page.goto('https://' + hostname + '/v1/openid-connect/authorize?client_id=' + this.apickli.scenarioVariables.clientId
Expand All @@ -42,7 +42,7 @@ Given('I navigate to the authorize page with an invalid response type', async fu
this.browser = await puppeteer.launch({
ignoreHTTPSErrors: true,
headless: true,
args: ["--no-sandbox"]
args: ["--no-sandbox", "--disable-gpu"]
})
this.page = await this.browser.newPage()
return await this.page.goto('https://' + hostname + '/v1/openid-connect/authorize?client_id=' + this.apickli.scenarioVariables.clientId
Expand All @@ -53,7 +53,7 @@ Given('I navigate to the authorize page without a scope parameter', async functi
this.browser = await puppeteer.launch({
ignoreHTTPSErrors: true,
headless: true,
args: ["--no-sandbox"]
args: ["--no-sandbox", "--disable-gpu"]
})
this.page = await this.browser.newPage()
return await this.page.goto('https://' + hostname + '/v1/openid-connect/authorize?client_id=' + this.apickli.scenarioVariables.clientId
Expand All @@ -64,7 +64,7 @@ Given('I navigate to the authorize page without a state parameter', async functi
this.browser = await puppeteer.launch({
ignoreHTTPSErrors: true,
headless: true,
args: ["--no-sandbox"]
args: ["--no-sandbox", "--disable-gpu"]
})
this.page = await this.browser.newPage()
return await this.page.goto('https://' + hostname + '/v1/openid-connect/authorize?client_id=' + this.apickli.scenarioVariables.clientId
Expand Down

0 comments on commit 6c3ada5

Please sign in to comment.