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: 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' }) 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",