Skip to content

Integrate e2e tests in PR checks#133

Open
Andreea167 wants to merge 19 commits intomainfrom
Integrate-e2e-tests
Open

Integrate e2e tests in PR checks#133
Andreea167 wants to merge 19 commits intomainfrom
Integrate-e2e-tests

Conversation

@Andreea167
Copy link
Copy Markdown

No description provided.

@netlify
Copy link
Copy Markdown

netlify bot commented Oct 8, 2025

Deploy Preview for superhero-trendminer-har2sa45a90zw62 ready!

Name Link
🔨 Latest commit 6657ae0
🔍 Latest deploy log https://app.netlify.com/projects/superhero-trendminer-har2sa45a90zw62/deploys/68e7bdcae6bc2400086866aa
😎 Deploy Preview https://deploy-preview-133--superhero-trendminer-har2sa45a90zw62.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link
Copy Markdown

netlify bot commented Oct 8, 2025

Deploy Preview for superhero-c9df18 ready!

Name Link
🔨 Latest commit 6657ae0
🔍 Latest deploy log https://app.netlify.com/projects/superhero-c9df18/deploys/68e7bdca95f007000755142c
😎 Deploy Preview https://deploy-preview-133--superhero-c9df18.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link
Copy Markdown

netlify bot commented Oct 8, 2025

Deploy Preview for celadon-youtiao-c85d92 ready!

Name Link
🔨 Latest commit 6657ae0
🔍 Latest deploy log https://app.netlify.com/projects/celadon-youtiao-c85d92/deploys/68e7bdcae26a0a00071e177c
😎 Deploy Preview https://deploy-preview-133--celadon-youtiao-c85d92.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Oct 8, 2025

❌ E2E Tests FAILED

Tested URL: https://deploy-preview-133--superhero-c9df18.netlify.app

❌ Failed Tests:

› tests_superhero_react/superhero-react.spec.ts:74:5 › @web Superhero-React - Verify swap 0.01 AE to aeETH with web wallet (2.1m)

📊 View Full Report

@Andreea167 Andreea167 changed the title Integrate e2e tests (ON HOLD) - Integrate e2e tests in PR checks Oct 8, 2025
@github-actions
Copy link
Copy Markdown

github-actions bot commented Oct 8, 2025

❌ E2E Tests FAILED

Tested URL: https://deploy-preview-133--superhero-c9df18.netlify.app

📊 View Full Report

@github-actions
Copy link
Copy Markdown

github-actions bot commented Oct 8, 2025

❌ E2E Tests FAILED

Tested URL: https://deploy-preview-133--superhero-c9df18.netlify.app

❌ Failed Tests:

› tests_superhero_react/superhero-react.spec.ts:74:5 › @web Superhero-React - Verify swap 0.01 AE to aeETH with web wallet (24.7s)

📊 View Full Report

@github-actions
Copy link
Copy Markdown

github-actions bot commented Oct 9, 2025

❌ E2E Tests FAILED

Tested URL: https://deploy-preview-133--superhero-c9df18.netlify.app

❌ Failed Tests:

› tests_superhero_react/superhero-react.spec.ts:74:5 › @web Superhero-React - Verify swap 0.01 AE to aeETH with web wallet (24.5s)

📊 View Full Report

@github-actions
Copy link
Copy Markdown

github-actions bot commented Oct 9, 2025

❌ E2E Tests FAILED

Tested URL: https://deploy-preview-133--superhero-c9df18.netlify.app

📊 View Full Report

@github-actions
Copy link
Copy Markdown

github-actions bot commented Oct 9, 2025

✅ E2E Tests PASSED

Tested URL: https://deploy-preview-133--superhero-c9df18.netlify.app

📊 View Full Report

@github-actions
Copy link
Copy Markdown

github-actions bot commented Oct 9, 2025

❌ E2E Tests FAILED

Tested URL: https://deploy-preview-133--superhero-c9df18.netlify.app

📊 View Full Report

@github-actions
Copy link
Copy Markdown

github-actions bot commented Oct 9, 2025

❌ E2E Tests FAILED

Tested URL: https://deploy-preview-133--superhero-c9df18.netlify.app

📊 View Full Report

@github-actions
Copy link
Copy Markdown

github-actions bot commented Oct 9, 2025

❌ E2E Tests FAILED

Tested URL: https://deploy-preview-133--superhero-c9df18.netlify.app

📊 View Full Report

@github-actions
Copy link
Copy Markdown

github-actions bot commented Oct 9, 2025

❌ E2E Tests FAILED

Tested URL: https://deploy-preview-133--superhero-c9df18.netlify.app

📊 View Full Report

2 similar comments
@github-actions
Copy link
Copy Markdown

github-actions bot commented Oct 9, 2025

❌ E2E Tests FAILED

Tested URL: https://deploy-preview-133--superhero-c9df18.netlify.app

📊 View Full Report

@github-actions
Copy link
Copy Markdown

github-actions bot commented Oct 9, 2025

❌ E2E Tests FAILED

Tested URL: https://deploy-preview-133--superhero-c9df18.netlify.app

📊 View Full Report

@github-actions
Copy link
Copy Markdown

github-actions bot commented Oct 9, 2025

✅ E2E Tests PASSED

Tested URL: https://deploy-preview-133--superhero-c9df18.netlify.app

📊 View Full Report

@github-actions
Copy link
Copy Markdown

github-actions bot commented Oct 9, 2025

❌ E2E Tests FAILED

Tested URL: https://deploy-preview-133--superhero-c9df18.netlify.app

📊 View Full Report

@github-actions
Copy link
Copy Markdown

github-actions bot commented Oct 9, 2025

✅ E2E Tests PASSED

Tested URL: https://deploy-preview-133--superhero-c9df18.netlify.app

📊 View Full Report

@Andreea167 Andreea167 marked this pull request as ready for review October 9, 2025 14:05
@Andreea167 Andreea167 changed the title (ON HOLD) - Integrate e2e tests in PR checks Integrate e2e tests in PR checks Oct 9, 2025
id: failed_tests
working-directory: keypair-testing
run: |
if [ -f "test-output.log" ]; then
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Failed Tests Not Reported in PR Comments

The E2E test workflow attempts to extract failed test names from test-output.log, but the Playwright command doesn't save its output to this file. As a result, failed tests are never reported in the PR comment.

Fix in Cursor Fix in Web

timeout-minutes: 20

steps:
- name: Wait for Netlify Preview
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not obvious that e2e tests should depend on deployment. Maybe it would be faster to build the app here or get the built app from the previous step? Doing so will definitely be more reliable since it won't depend on Netlify.

env:
SUPERHERO_COM_BASE_URL: ${{ steps.netlify.outputs.url }}
run: |
SUPERHERO_COM_BASE_URL=$SUPERHERO_COM_BASE_URL npx playwright test tests_superhero_react/superhero-react.spec.ts --retries=1 --config=./playwright.config.ts
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The problem with this approach is that in some cases, the test fails not because the app is broken, but because it is not compatible with the app changes. Then the developer needs to adjust the failing test, but since it is in another repository, he needs to do another PR to the test suite 🙈 The best would be to keep tests in the same repository as the app.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you need --retries=1 because of flaky tests?

retention-days: 30
if-no-files-found: warn

- name: Comment PR with test results
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This step is not necessary as GitHub already displays the CI status at the end of the PR and for every commit. It also appears more compact than the comments.

- name: Clone keypair-testing repo
uses: actions/checkout@v4
with:
repository: aeternity/keypair-testing
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense to specify the commit of "keypair-testing" explicitly, to keep the relation between repositories. Otherwise, e2e tests won't work for old commits in "superhero" because "keypair-testing" get changed.

@davidyuk davidyuk self-assigned this Apr 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants