Skip to content

Commit

Permalink
chore: setup gh test for cert auth
Browse files Browse the repository at this point in the history
  • Loading branch information
marianfoo committed Nov 7, 2024
1 parent edf2d82 commit 09deac8
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 29,183 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/wdi5-tests_auth.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ env:
BROWSERSTACK_ACCESS_KEY: ${{secrets.BROWSERSTACK_ACCESS_KEY}}
SAUCE_USERNAME: ${{secrets.SAUCE_USERNAME}}
SAUCE_ACCESS_KEY: ${{secrets.SAUCE_ACCESS_KEY}}
SAPPFX_BASE64: ${{secrets.SAPPFX_BASE64}}
SAPPFX_PASSPHRASE: ${{secrets.SAPPFX_PASSPHRASE}}

jobs:
authorize:
Expand Down Expand Up @@ -64,10 +66,19 @@ jobs:
npm pkg delete scripts.prepare
npm ci
- name: Install Playwright browsers
run: npx playwright install --with-deps chromium

# build things
- name: build
run: npm run build

- name: Create PFX file from secret
env:
SAPPFX_BASE64: ${{ secrets.SAPPFX_BASE64 }}
run: |
echo "$SAPPFX_BASE64" | base64 -d > examples/ui5-ts-app/sap.pfx
# this against the submodule cloned from https://github.com/SAP-samples/cap-bookshop-wdi5
- name: local CAP authentication
run: npm run test:capAuth
Expand Down
5 changes: 4 additions & 1 deletion examples/ui5-ts-app/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,7 @@ node_modules/

# do not add dependency lock files to this repo because it should remain independent from specific dependency managers
package-lock.json
yarn.lock
yarn.lock

# PFX file
sap.pfx
5 changes: 3 additions & 2 deletions examples/ui5-ts-app/wdio-ui5.conf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export const config: wdi5Config = {
"./test/e2e/multiremote.test.ts",
"./test/e2e/BasicMultiRemoteAuthentication.test.ts",
"./test/e2e/Authentication.test.ts",
"./test/e2e/AuthenticationCert.test.ts",
"./test/e2e/ui5-late.test.ts",
"./test/e2e/protocol/**/*.test.ts",
"./test/e2e/workzone/**/*.test.ts"
Expand All @@ -31,8 +32,8 @@ export const config: wdi5Config = {
process.argv.indexOf("--headless") > -1
? ["--headless"]
: process.argv.indexOf("--debug") > -1
? ["window-size=1440,800", "--auto-open-devtools-for-tabs"]
: ["window-size=1440,800"]
? ["window-size=1440,800", "--auto-open-devtools-for-tabs"]
: ["window-size=1440,800"]
},
acceptInsecureCerts: true
}
Expand Down
Loading

0 comments on commit 09deac8

Please sign in to comment.