Skip to content

Conversation

@scytacki
Copy link
Member

@scytacki scytacki commented Mar 20, 2025

Add Playwright and remove Cypress.

This started as a simple copy of the changes in concord-consortium/dst-codap-plugin#25.
But I found some problems with that setup:

  • linting was broken by files in the playwright folder
  • locally reviewing the code coverage from Playwright was broken

These problems fixed here, as well as all references to Cypress are removed.
Additionally the runtime code was updated to make it easier for a Playwright test to find the elements in the plugin. The main change was to use <label> and <output> which makes it easier for Playwright to find the elements and also makes the plugin more accessible.

@github-actions
Copy link

github-actions bot commented Mar 20, 2025

Playwright test results

passed  2 passed

Details

report  Open report ↗︎
stats  2 tests across 1 suite
duration  11.6 seconds
commit  2799197

@codecov
Copy link

codecov bot commented Mar 20, 2025

Codecov Report

Attention: Patch coverage is 92.85714% with 1 line in your changes missing coverage. Please review.

Project coverage is 70.07%. Comparing base (e2fb2d5) to head (2799197).
Report is 4 commits behind head on main.

Files with missing lines Patch % Lines
src/components/App.css 75.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##             main      #12       +/-   ##
===========================================
+ Coverage   60.00%   70.07%   +10.07%     
===========================================
  Files           1        4        +3     
  Lines          35      274      +239     
  Branches        5       11        +6     
===========================================
+ Hits           21      192      +171     
- Misses         14       82       +68     
Flag Coverage Δ
jest 62.16% <100.00%> (+2.16%) ⬆️
playwright 69.70% <92.85%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@scytacki scytacki marked this pull request as ready for review March 20, 2025 16:45
@scytacki scytacki requested a review from tealefristoe March 20, 2025 16:45
Copy link
Contributor

@tealefristoe tealefristoe left a comment

Choose a reason for hiding this comment

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

I had a couple of questions, but overall looks good 👍

@scytacki scytacki merged commit 973223e into main Mar 21, 2025
5 checks passed
@scytacki scytacki deleted the START-4-playwright branch March 21, 2025 00:48
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