diff --git a/.github/workflows/2wr-app.yaml b/.github/workflows/2wr-app.yaml index 52b3ef9..cac7baf 100644 --- a/.github/workflows/2wr-app.yaml +++ b/.github/workflows/2wr-app.yaml @@ -43,99 +43,15 @@ jobs: TWO_WEEKS_READY_E2E_TEST_PASSWORD: ${{ secrets.TWO_WEEKS_READY_E2E_TEST_PASSWORD }} working-directory: ./2wr-app - name: Upload e2e Test Results Recordings and Screenshots - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 if: failure() with: name: e2e-test-results path: ./2wr-app/test-results - name: Upload e2e Test Results Report - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 if: ${{ always() }} with: name: e2e-test-report path: ./2wr-app/playwright-report - - name: Clear sample env file from e2e tests - run: 'rm ./2wr-app/.env' - - name: Write env file - run: 'echo "$DEV_ENV" > ./2wr-app/.env' - shell: bash - env: - DEV_ENV: ${{secrets.DEV_ENV}} - - run: npm run build - working-directory: ./2wr-app - deploy_to_dev: - runs-on: ubuntu-latest - - strategy: - matrix: - node-version: [16.x] - - needs: build - if: github.event_name != 'pull_request' - environment: development - steps: - - uses: actions/checkout@v2 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 - with: - node-version: ${{ matrix.node-version }} - - run: npm ci - working-directory: ./2wr-app - - name: Write env file - run: 'echo "$DEV_ENV" > ./2wr-app/.env' - shell: bash - env: - DEV_ENV: ${{secrets.DEV_ENV}} - - run: npm run build - working-directory: ./2wr-app - - name: Azure Login - uses: azure/login@v1 - with: - client-id: ${{ secrets.AZURE_CLIENT_ID }} - tenant-id: ${{ secrets.AZURE_TENANT_ID }} - subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }} - - name: Azure Deploy Resources - uses: Azure/cli@v1.0.0 - with: - inlineScript: | - chmod +x $GITHUB_WORKSPACE/az/deploy-frontend.sh - $GITHUB_WORKSPACE/az/deploy-frontend.sh -s $GITHUB_WORKSPACE/2wr-app/dist/ - - deploy_to_beta: - runs-on: ubuntu-latest - - strategy: - matrix: - node-version: [16.x] - - needs: deploy_to_dev - if: github.event_name != 'pull_request' - environment: beta - steps: - - uses: actions/checkout@v2 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 - with: - node-version: ${{ matrix.node-version }} - - run: npm ci - working-directory: ./2wr-app - - name: Write env file - run: 'echo "$ENV" > ./2wr-app/.env' - shell: bash - env: - ENV: ${{secrets.ENV}} - - run: npm run build - working-directory: ./2wr-app - - name: Azure Login - uses: azure/login@v1 - with: - client-id: ${{ secrets.AZURE_CLIENT_ID }} - tenant-id: ${{ secrets.AZURE_TENANT_ID }} - subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }} - - name: Azure Deploy Resources - uses: Azure/cli@v1.0.0 - with: - inlineScript: | - chmod +x $GITHUB_WORKSPACE/az/deploy-frontend.sh - $GITHUB_WORKSPACE/az/deploy-frontend.sh -s $GITHUB_WORKSPACE/2wr-app/dist/ -r 2wr-beta-resources -e 2wrbeta diff --git a/2wr-app/package-lock.json b/2wr-app/package-lock.json index b6fe62f..c3ed415 100644 --- a/2wr-app/package-lock.json +++ b/2wr-app/package-lock.json @@ -25,7 +25,7 @@ }, "devDependencies": { "@mdi/font": "^5.8.55", - "@playwright/test": "^1.40.0", + "@playwright/test": "^1.47.2", "@vue/cli-plugin-babel": "^4.5.10", "@vue/cli-plugin-eslint": "^4.5.10", "@vue/cli-plugin-pwa": "^4.5.10", @@ -1736,18 +1736,18 @@ } }, "node_modules/@playwright/test": { - "version": "1.40.0", - "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.40.0.tgz", - "integrity": "sha512-PdW+kn4eV99iP5gxWNSDQCbhMaDVej+RXL5xr6t04nbKLCBwYtA046t7ofoczHOm8u6c+45hpDKQVZqtqwkeQg==", + "version": "1.47.2", + "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.47.2.tgz", + "integrity": "sha512-jTXRsoSPONAs8Za9QEQdyjFn+0ZQFjCiIztAIF6bi1HqhBzG9Ma7g1WotyiGqFSBRZjIEqMdT8RUlbk1QVhzCQ==", "dev": true, "dependencies": { - "playwright": "1.40.0" + "playwright": "1.47.2" }, "bin": { "playwright": "cli.js" }, "engines": { - "node": ">=16" + "node": ">=18" } }, "node_modules/@soda/friendly-errors-webpack-plugin": { @@ -11043,33 +11043,33 @@ } }, "node_modules/playwright": { - "version": "1.40.0", - "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.40.0.tgz", - "integrity": "sha512-gyHAgQjiDf1m34Xpwzaqb76KgfzYrhK7iih+2IzcOCoZWr/8ZqmdBw+t0RU85ZmfJMgtgAiNtBQ/KS2325INXw==", + "version": "1.47.2", + "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.47.2.tgz", + "integrity": "sha512-nx1cLMmQWqmA3UsnjaaokyoUpdVaaDhJhMoxX2qj3McpjnsqFHs516QAKYhqHAgOP+oCFTEOCOAaD1RgD/RQfA==", "dev": true, "dependencies": { - "playwright-core": "1.40.0" + "playwright-core": "1.47.2" }, "bin": { "playwright": "cli.js" }, "engines": { - "node": ">=16" + "node": ">=18" }, "optionalDependencies": { "fsevents": "2.3.2" } }, "node_modules/playwright-core": { - "version": "1.40.0", - "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.40.0.tgz", - "integrity": "sha512-fvKewVJpGeca8t0ipM56jkVSU6Eo0RmFvQ/MaCQNDYm+sdvKkMBBWTE1FdeMqIdumRaXXjZChWHvIzCGM/tA/Q==", + "version": "1.47.2", + "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.47.2.tgz", + "integrity": "sha512-3JvMfF+9LJfe16l7AbSmU555PaTl2tPyQsVInqm3id16pdDfvZ8TTZ/pyzmkbDrZTQefyzU7AIHlZqQnxpqHVQ==", "dev": true, "bin": { "playwright-core": "cli.js" }, "engines": { - "node": ">=16" + "node": ">=18" } }, "node_modules/pnp-webpack-plugin": { @@ -17761,12 +17761,12 @@ "dev": true }, "@playwright/test": { - "version": "1.40.0", - "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.40.0.tgz", - "integrity": "sha512-PdW+kn4eV99iP5gxWNSDQCbhMaDVej+RXL5xr6t04nbKLCBwYtA046t7ofoczHOm8u6c+45hpDKQVZqtqwkeQg==", + "version": "1.47.2", + "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.47.2.tgz", + "integrity": "sha512-jTXRsoSPONAs8Za9QEQdyjFn+0ZQFjCiIztAIF6bi1HqhBzG9Ma7g1WotyiGqFSBRZjIEqMdT8RUlbk1QVhzCQ==", "dev": true, "requires": { - "playwright": "1.40.0" + "playwright": "1.47.2" } }, "@soda/friendly-errors-webpack-plugin": { @@ -25234,19 +25234,19 @@ } }, "playwright": { - "version": "1.40.0", - "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.40.0.tgz", - "integrity": "sha512-gyHAgQjiDf1m34Xpwzaqb76KgfzYrhK7iih+2IzcOCoZWr/8ZqmdBw+t0RU85ZmfJMgtgAiNtBQ/KS2325INXw==", + "version": "1.47.2", + "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.47.2.tgz", + "integrity": "sha512-nx1cLMmQWqmA3UsnjaaokyoUpdVaaDhJhMoxX2qj3McpjnsqFHs516QAKYhqHAgOP+oCFTEOCOAaD1RgD/RQfA==", "dev": true, "requires": { "fsevents": "2.3.2", - "playwright-core": "1.40.0" + "playwright-core": "1.47.2" } }, "playwright-core": { - "version": "1.40.0", - "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.40.0.tgz", - "integrity": "sha512-fvKewVJpGeca8t0ipM56jkVSU6Eo0RmFvQ/MaCQNDYm+sdvKkMBBWTE1FdeMqIdumRaXXjZChWHvIzCGM/tA/Q==", + "version": "1.47.2", + "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.47.2.tgz", + "integrity": "sha512-3JvMfF+9LJfe16l7AbSmU555PaTl2tPyQsVInqm3id16pdDfvZ8TTZ/pyzmkbDrZTQefyzU7AIHlZqQnxpqHVQ==", "dev": true }, "pnp-webpack-plugin": { diff --git a/2wr-app/package.json b/2wr-app/package.json index 9566822..ba80ba6 100644 --- a/2wr-app/package.json +++ b/2wr-app/package.json @@ -31,7 +31,7 @@ }, "devDependencies": { "@mdi/font": "^5.8.55", - "@playwright/test": "^1.40.0", + "@playwright/test": "^1.47.2", "@vue/cli-plugin-babel": "^4.5.10", "@vue/cli-plugin-eslint": "^4.5.10", "@vue/cli-plugin-pwa": "^4.5.10", diff --git a/2wr-app/src/components/prepare/hazards/hazard-info.vue b/2wr-app/src/components/prepare/hazards/hazard-info.vue index 92ff346..385c6a1 100644 --- a/2wr-app/src/components/prepare/hazards/hazard-info.vue +++ b/2wr-app/src/components/prepare/hazards/hazard-info.vue @@ -17,7 +17,7 @@

{{item.name}} Safety

- Before + Before During diff --git a/2wr-app/src/components/welcome/welcome-landing.vue b/2wr-app/src/components/welcome/welcome-landing.vue index da77b73..57eb003 100644 --- a/2wr-app/src/components/welcome/welcome-landing.vue +++ b/2wr-app/src/components/welcome/welcome-landing.vue @@ -7,7 +7,7 @@

Welcome to 2 weeks ready

-

+

2 Weeks Ready is a mobile application that makes emergency preparedness a simple, easy, sharable, and