diff --git a/.github/workflows/production_e2e.yml b/.github/workflows/production_e2e.yml index 0eea1b11..5eacf539 100644 --- a/.github/workflows/production_e2e.yml +++ b/.github/workflows/production_e2e.yml @@ -54,3 +54,14 @@ jobs: name: playwright-report path: playwright-report/ retention-days: 30 + report-status: + needs: e2e + if: always() + # Run always for now to test it out, later we switch to on-failure only + # if: ${{ needs.e2e.result == 'failure' }} + uses: fingerprintjs/dx-team-toolkit/.github/workflows/report-workflow-status.yml@v1 + with: + notification_title: 'Production e2e tests on demo.fingerprint.com have {status_message}' + job_status: ${{ needs.e2e.result }} + secrets: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} diff --git a/e2e/personalization.spec.ts b/e2e/personalization.spec.ts index 8ec45a1b..81be8e65 100644 --- a/e2e/personalization.spec.ts +++ b/e2e/personalization.spec.ts @@ -60,6 +60,8 @@ test.describe('Personalization', () => { await product.getByTestId(PERS_ID.addToCart).click(); await cartItem.getByTestId(CART_ID.cartItemPlusOne).click(); + // Confirm the request was successful before reloading the page + await expect(cartItem.getByTestId(CART_ID.cartItemCount)).toHaveText('02'); await page.reload();