Skip to content

Commit

Permalink
Disable E2E test
Browse files Browse the repository at this point in the history
  • Loading branch information
evansims committed Sep 15, 2023
1 parent 93d2946 commit 2d22dc2
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 27 deletions.
30 changes: 15 additions & 15 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,26 +84,26 @@ jobs:

- run: npm run test:types

mocha:
needs: build # Require build to complete before running tests
# mocha:
# needs: build # Require build to complete before running tests

name: Run End-to-End Tests
runs-on: ubuntu-latest
# name: Run End-to-End Tests
# runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
# steps:
# - uses: actions/checkout@v4

- uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
cache: npm
# - uses: actions/setup-node@v3
# with:
# node-version: ${{ env.NODE_VERSION }}
# cache: npm

- uses: actions/cache/restore@v3
with:
path: .
key: ${{ env.CACHE_KEY }}
# - uses: actions/cache/restore@v3
# with:
# path: .
# key: ${{ env.CACHE_KEY }}

- run: npm run test:end-to-end
# - run: npm run test:end-to-end

lint:
needs: build # Require build to complete before running tests
Expand Down
2 changes: 0 additions & 2 deletions end-to-end/access-an-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ describe('access an api', async () => {
it('should get an access token and access an api', async () => {
const browser = await puppeteer.launch({
args: ['no-sandbox', 'disable-setuid-sandbox'],
executablePath: process.env.PUPPETEER_EXEC_PATH,
headless: true,
});
const page = await browser.newPage();

Expand Down
4 changes: 0 additions & 4 deletions end-to-end/attempt-silent-login.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ describe('attempt silent login', async () => {
it('should attempt silent login and swallow failures', async () => {
const browser = await puppeteer.launch({
args: ['no-sandbox', 'disable-setuid-sandbox'],
executablePath: process.env.PUPPETEER_EXEC_PATH,
headless: true,
});
const page = await browser.newPage();
await goto(baseUrl, page);
Expand All @@ -47,8 +45,6 @@ describe('attempt silent login', async () => {
it('should login silently if there is an active session on the IDP', async () => {
const browser = await puppeteer.launch({
args: ['no-sandbox', 'disable-setuid-sandbox'],
executablePath: process.env.PUPPETEER_EXEC_PATH,
headless: true,
});
const page = await browser.newPage();
await goto(`${baseUrl}/login`, page);
Expand Down
2 changes: 0 additions & 2 deletions end-to-end/basic.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ describe('basic login and logout', async () => {
it('should login and logout with default configuration', async () => {
const browser = await puppeteer.launch({
args: ['no-sandbox', 'disable-setuid-sandbox'],
executablePath: process.env.PUPPETEER_EXEC_PATH,
headless: true,
});
const page = await browser.newPage();
await goto(baseUrl, page);
Expand Down
2 changes: 0 additions & 2 deletions end-to-end/private-key-jwt.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ describe('private key jwt', async () => {
it('should login with private key jwt client auth method', async () => {
const browser = await puppeteer.launch({
args: ['no-sandbox', 'disable-setuid-sandbox'],
executablePath: process.env.PUPPETEER_EXEC_PATH,
headless: true,
});
const page = await browser.newPage();
await goto(baseUrl, page);
Expand Down
2 changes: 0 additions & 2 deletions end-to-end/userinfo.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ describe('fetch userinfo', async () => {
it('should login with hybrid flow and fetch userinfo', async () => {
const browser = await puppeteer.launch({
args: ['no-sandbox', 'disable-setuid-sandbox'],
executablePath: process.env.PUPPETEER_EXEC_PATH,
headless: true,
});
const page = await browser.newPage();
await goto(baseUrl, page);
Expand Down

0 comments on commit 2d22dc2

Please sign in to comment.