From 72cb398822d14d4e691f2bdad1c445ffe012cfd9 Mon Sep 17 00:00:00 2001 From: miles-grant-ibi Date: Thu, 15 Jun 2023 12:07:47 -0400 Subject: [PATCH 1/3] ci: upgrade node version --- package.json | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/package.json b/package.json index d53922f..34e628f 100644 --- a/package.json +++ b/package.json @@ -2,9 +2,7 @@ "name": "otp-admin-ui", "version": "1.0.0", "main": "index.js", - "engines": { - "node": ">=14.x" - }, + "engines": { "node": "18.x" }, "license": "MIT", "scripts": { "build": "next build", From 96d45df4e22743ca18acd0d51033c46b610b8fac Mon Sep 17 00:00:00 2001 From: miles-grant-ibi Date: Thu, 15 Jun 2023 12:18:40 -0400 Subject: [PATCH 2/3] ci: upgrade node version --- .github/workflows/e2e.yml | 4 ++-- .github/workflows/node-ci.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 724514f..3742679 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -12,10 +12,10 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Use Node.js 17.x + - name: Use Node.js 18.x uses: actions/setup-node@v1 with: - node-version: 17.x + node-version: 18.x - name: Install npm packages using cache uses: bahmutov/npm-install@v1 with: diff --git a/.github/workflows/node-ci.yml b/.github/workflows/node-ci.yml index fbd720a..2979e8c 100644 --- a/.github/workflows/node-ci.yml +++ b/.github/workflows/node-ci.yml @@ -12,10 +12,10 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Use Node.js 14.x + - name: Use Node.js 18.x uses: actions/setup-node@v1 with: - node-version: 14.x + node-version: 18.x - name: Install npm packages using cache uses: bahmutov/npm-install@v1 with: From d8c80a5ba8849281eee72a46a1b030691d4d8ea7 Mon Sep 17 00:00:00 2001 From: miles-grant-ibi Date: Fri, 16 Jun 2023 10:28:45 -0400 Subject: [PATCH 3/3] ci: fix auth0 login --- __tests__/e2e/e2e.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/__tests__/e2e/e2e.ts b/__tests__/e2e/e2e.ts index 66486c4..425f285 100644 --- a/__tests__/e2e/e2e.ts +++ b/__tests__/e2e/e2e.ts @@ -32,13 +32,13 @@ describe('end-to-end tests', () => { password: process.env.E2E_PASSWORD, username: process.env.E2E_USERNAME_API }) + await page.keyboard.press('Enter') } catch (error) { console.warn(error) console.warn( 'You may have forgotten to set E2E_PASSWORD or E2E_USERNAME_API environment variables' ) } - await page.click('button[type="submit"]') await page.waitForNavigation({ waitUntil: 'networkidle2' }) @@ -84,13 +84,13 @@ describe('end-to-end tests', () => { password: process.env.E2E_PASSWORD, username: E2E_USERNAME }) + await page.keyboard.press('Enter') } catch (error) { console.warn(error) console.warn( 'You may have forgotten to set E2E_PASSWORD or E2E_USERNAME environment variables' ) } - await page.click('button[type="submit"]') await page.waitForNavigation({ waitUntil: 'networkidle2' }) @@ -170,13 +170,13 @@ describe('end-to-end tests', () => { password: process.env.E2E_PASSWORD, username: NEW_CDP_USERNAME }) + await page.keyboard.press('Enter') } catch (error) { console.warn(error) console.warn( 'You may have forgotten to set E2E_PASSWORD or E2E_NEW_USERNAME_1 environment variables' ) } - await page.click('button[type="submit"]') await page.waitForNavigation({ waitUntil: 'networkidle2' })