Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add playwright tests to sample vite app #1549

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
Open

Add playwright tests to sample vite app #1549

wants to merge 13 commits into from

Conversation

claytonneal
Copy link
Member

Description

Adding playwright e2e tests to sample vite app

Fixes # 1515

Type of change

Please delete options that are not relevant.

  • [] Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • [] Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • [] This change requires a documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • Run locally

Test Configuration:

  • Node.js Version:
  • Yarn Version:

Checklist:

  • My code follows the coding standards of this project
  • I have performed a self-review of my code
  • I have commented on my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • New and existing integration tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules
  • I have not added any vulnerable dependencies to my code

@claytonneal claytonneal requested a review from a team as a code owner November 29, 2024 11:42
Copy link

socket-security bot commented Nov 29, 2024

New dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@playwright/[email protected] None +3 11.3 MB dgozman-ms, mxschmitt, pavelfeldman, ...1 more

View full report↗︎

- possible fix before revering to 1.47.2
- excluded also from test
- one more try
- bumped vite version to 2.1.5
- downgraded playwright to 1.47.2
- restored webserver
- bump vitest 2.1.6
- trying to fix process issue now
- change process in vitest configs
- fixed the local test issues with vitest (not actually playwright)
Copy link

github-actions bot commented Dec 1, 2024

Test Coverage

Summary

Lines Statements Branches Functions
Coverage: 99%
99% (4368/4412) 97.56% (1400/1435) 99.01% (906/915)
Title Tests Skipped Failures Errors Time
core 836 0 💤 0 ❌ 0 🔥 2m 21s ⏱️
network 727 0 💤 0 ❌ 0 🔥 4m 59s ⏱️
errors 42 0 💤 0 ❌ 0 🔥 16.749s ⏱️
logging 3 0 💤 0 ❌ 0 🔥 18.071s ⏱️
hardhat-plugin 19 0 💤 0 ❌ 0 🔥 1m 1s ⏱️
aws-kms-adapter 23 0 💤 0 ❌ 0 🔥 1m 19s ⏱️
ethers-adapter 5 0 💤 0 ❌ 0 🔥 1m 11s ⏱️
rpc-proxy 37 0 💤 0 ❌ 0 🔥 1m 2s ⏱️

- added vite workspace so we can run both jsdom and node tests
- added playwright run to test-apps for vite
Copy link
Member

@freemanzMrojo freemanzMrojo left a comment

Choose a reason for hiding this comment

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

LGTM, added a couple of suggestions

done

- name: E2E Test for apps
Copy link
Member

Choose a reason for hiding this comment

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

Currently we are duplicating the execution for the apps because they are included in workspaces in package.json. I created this ticket because of that #1500.

I would place this snippet either in a separate yml or (maybe) just get rid of the rest and use this file just for this test so you can also complete the other ticket. Otherwise this new part will be moved eventually.

Keccak256,
Sha256,
Txt
} from '@vechain/sdk-core/dist/index.mjs';
Copy link
Member

Choose a reason for hiding this comment

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

Suggestion: I would try to use the normal import. Probably you are doing this because of the issue you described during these days, but I would double-check if you can somehow specify something in the playwright config to load this properly since it should not be required (basically you are saying something like "playwright, load ESM files").

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