Skip to content

Commit 09deac8

Browse files
committed
chore: setup gh test for cert auth
1 parent edf2d82 commit 09deac8

File tree

5 files changed

+19
-29183
lines changed

5 files changed

+19
-29183
lines changed

.github/workflows/wdi5-tests_auth.yml

+11
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ env:
2828
BROWSERSTACK_ACCESS_KEY: ${{secrets.BROWSERSTACK_ACCESS_KEY}}
2929
SAUCE_USERNAME: ${{secrets.SAUCE_USERNAME}}
3030
SAUCE_ACCESS_KEY: ${{secrets.SAUCE_ACCESS_KEY}}
31+
SAPPFX_BASE64: ${{secrets.SAPPFX_BASE64}}
32+
SAPPFX_PASSPHRASE: ${{secrets.SAPPFX_PASSPHRASE}}
3133

3234
jobs:
3335
authorize:
@@ -64,10 +66,19 @@ jobs:
6466
npm pkg delete scripts.prepare
6567
npm ci
6668
69+
- name: Install Playwright browsers
70+
run: npx playwright install --with-deps chromium
71+
6772
# build things
6873
- name: build
6974
run: npm run build
7075

76+
- name: Create PFX file from secret
77+
env:
78+
SAPPFX_BASE64: ${{ secrets.SAPPFX_BASE64 }}
79+
run: |
80+
echo "$SAPPFX_BASE64" | base64 -d > examples/ui5-ts-app/sap.pfx
81+
7182
# this against the submodule cloned from https://github.com/SAP-samples/cap-bookshop-wdi5
7283
- name: local CAP authentication
7384
run: npm run test:capAuth

examples/ui5-ts-app/.gitignore

+4-1
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,7 @@ node_modules/
1515

1616
# do not add dependency lock files to this repo because it should remain independent from specific dependency managers
1717
package-lock.json
18-
yarn.lock
18+
yarn.lock
19+
20+
# PFX file
21+
sap.pfx

examples/ui5-ts-app/wdio-ui5.conf.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ export const config: wdi5Config = {
1616
"./test/e2e/multiremote.test.ts",
1717
"./test/e2e/BasicMultiRemoteAuthentication.test.ts",
1818
"./test/e2e/Authentication.test.ts",
19+
"./test/e2e/AuthenticationCert.test.ts",
1920
"./test/e2e/ui5-late.test.ts",
2021
"./test/e2e/protocol/**/*.test.ts",
2122
"./test/e2e/workzone/**/*.test.ts"
@@ -31,8 +32,8 @@ export const config: wdi5Config = {
3132
process.argv.indexOf("--headless") > -1
3233
? ["--headless"]
3334
: process.argv.indexOf("--debug") > -1
34-
? ["window-size=1440,800", "--auto-open-devtools-for-tabs"]
35-
: ["window-size=1440,800"]
35+
? ["window-size=1440,800", "--auto-open-devtools-for-tabs"]
36+
: ["window-size=1440,800"]
3637
},
3738
acceptInsecureCerts: true
3839
}

0 commit comments

Comments
 (0)