Skip to content

Commit 6c3ada5

Browse files
committed
fix: add --no-gpu to fix puppeteer regression in alpine
1 parent 9a3a12b commit 6c3ada5

File tree

2 files changed

+12
-12
lines changed
  • references
    • identity-facade/test/integration/features/step_definitions
    • oidc-mock/test/integration/features/step_definitions

2 files changed

+12
-12
lines changed

references/identity-facade/test/integration/features/step_definitions/ui.js

+8-8
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Given('I navigate to the authorize page', async function() {
3636
this.browser = await puppeteer.launch({
3737
ignoreHTTPSErrors: true,
3838
headless: true,
39-
args: ["--no-sandbox"]
39+
args: ["--no-sandbox", "--disable-gpu"]
4040
})
4141
this.page = await this.browser.newPage()
4242
return await this.page.goto('https://' + hostname + basePath + '/authorize?client_id=' + this.apickli.scenarioVariables.clientId
@@ -49,7 +49,7 @@ Given('I navigate to the authorize page with query params that must be sanitized
4949
this.browser = await puppeteer.launch({
5050
ignoreHTTPSErrors: true,
5151
headless: true,
52-
args: ["--no-sandbox"]
52+
args: ["--no-sandbox", "--disable-gpu"]
5353
})
5454
this.page = await this.browser.newPage()
5555
return await this.page.goto('https://' + hostname + basePath + '/authorize?client_id=' + ' ' + this.apickli.scenarioVariables.clientId
@@ -62,7 +62,7 @@ Given('I navigate to the authorize page with an invalid response type', async fu
6262
this.browser = await puppeteer.launch({
6363
ignoreHTTPSErrors: true,
6464
headless: true,
65-
args: ["--no-sandbox"]
65+
args: ["--no-sandbox", "--disable-gpu"]
6666
})
6767
this.page = await this.browser.newPage()
6868
return await this.page.goto('https://' + hostname + basePath + '/authorize?client_id=' + this.apickli.scenarioVariables.clientId
@@ -75,7 +75,7 @@ Given('I navigate to the authorize page without a scope parameter', async functi
7575
this.browser = await puppeteer.launch({
7676
ignoreHTTPSErrors: true,
7777
headless: true,
78-
args: ["--no-sandbox"]
78+
args: ["--no-sandbox", "--disable-gpu"]
7979
})
8080
this.page = await this.browser.newPage()
8181
return await this.page.goto('https://' + hostname + basePath + '/authorize?client_id=' + this.apickli.scenarioVariables.clientId
@@ -88,7 +88,7 @@ Given('I navigate to the authorize page without a state parameter', async functi
8888
this.browser = await puppeteer.launch({
8989
ignoreHTTPSErrors: true,
9090
headless: true,
91-
args: ["--no-sandbox"]
91+
args: ["--no-sandbox", "--disable-gpu"]
9292
})
9393
this.page = await this.browser.newPage()
9494
return await this.page.goto('https://' + hostname + basePath + '/authorize?client_id=' + this.apickli.scenarioVariables.clientId
@@ -102,7 +102,7 @@ if (isPkceEnabled) {
102102
this.browser = await puppeteer.launch({
103103
ignoreHTTPSErrors: true,
104104
headless: true,
105-
args: ["--no-sandbox"]
105+
args: ["--no-sandbox", "--disable-gpu"]
106106
})
107107
this.page = await this.browser.newPage()
108108
return await this.page.goto('https://' + hostname + basePath + '/authorize?client_id=' + this.apickli.scenarioVariables.clientId
@@ -114,7 +114,7 @@ if (isPkceEnabled) {
114114
this.browser = await puppeteer.launch({
115115
ignoreHTTPSErrors: true,
116116
headless: true,
117-
args: ["--no-sandbox"]
117+
args: ["--no-sandbox", "--disable-gpu"]
118118
})
119119
this.page = await this.browser.newPage()
120120
return await this.page.goto('https://' + hostname + basePath + '/authorize?client_id=' + this.apickli.scenarioVariables.clientId
@@ -126,7 +126,7 @@ if (isPkceEnabled) {
126126
this.browser = await puppeteer.launch({
127127
ignoreHTTPSErrors: true,
128128
headless: true,
129-
args: ["--no-sandbox"]
129+
args: ["--no-sandbox", "--disable-gpu"]
130130
})
131131
this.page = await this.browser.newPage()
132132
return await this.page.goto('https://' + hostname + basePath + '/authorize?client_id=' + this.apickli.scenarioVariables.clientId

references/oidc-mock/test/integration/features/step_definitions/ui.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Given('I navigate to the authorize page', async function() {
3131
this.browser = await puppeteer.launch({
3232
ignoreHTTPSErrors: true,
3333
headless: true,
34-
args: ["--no-sandbox"]
34+
args: ["--no-sandbox", "--disable-gpu"]
3535
})
3636
this.page = await this.browser.newPage()
3737
return await this.page.goto('https://' + hostname + '/v1/openid-connect/authorize?client_id=' + this.apickli.scenarioVariables.clientId
@@ -42,7 +42,7 @@ Given('I navigate to the authorize page with an invalid response type', async fu
4242
this.browser = await puppeteer.launch({
4343
ignoreHTTPSErrors: true,
4444
headless: true,
45-
args: ["--no-sandbox"]
45+
args: ["--no-sandbox", "--disable-gpu"]
4646
})
4747
this.page = await this.browser.newPage()
4848
return await this.page.goto('https://' + hostname + '/v1/openid-connect/authorize?client_id=' + this.apickli.scenarioVariables.clientId
@@ -53,7 +53,7 @@ Given('I navigate to the authorize page without a scope parameter', async functi
5353
this.browser = await puppeteer.launch({
5454
ignoreHTTPSErrors: true,
5555
headless: true,
56-
args: ["--no-sandbox"]
56+
args: ["--no-sandbox", "--disable-gpu"]
5757
})
5858
this.page = await this.browser.newPage()
5959
return await this.page.goto('https://' + hostname + '/v1/openid-connect/authorize?client_id=' + this.apickli.scenarioVariables.clientId
@@ -64,7 +64,7 @@ Given('I navigate to the authorize page without a state parameter', async functi
6464
this.browser = await puppeteer.launch({
6565
ignoreHTTPSErrors: true,
6666
headless: true,
67-
args: ["--no-sandbox"]
67+
args: ["--no-sandbox", "--disable-gpu"]
6868
})
6969
this.page = await this.browser.newPage()
7070
return await this.page.goto('https://' + hostname + '/v1/openid-connect/authorize?client_id=' + this.apickli.scenarioVariables.clientId

0 commit comments

Comments
 (0)