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

♻️ use playwright for e2e #3159

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

Conversation

thomas-lebeau
Copy link
Collaborator

@thomas-lebeau thomas-lebeau commented Nov 25, 2024

Important

This is a POC / WIP started during performance friday

Motivation

Use playwright for 2e2.

Changes

status:

  • developer-extension/developerExtension.scenario.ts
  • recorder/recorder.scenario.ts
  • recorder/shadowDow.scenario.ts
  • recorder/viewports.scenario.ts
  • rum/actions.scenario.ts
  • rum/errors.scenario.ts
  • rum/init.scenario.ts
  • rum/resources.scenario.ts
  • rum/s8sInject.scenario.ts
  • rum/sessions.scenario.ts
  • rum/tracing.scenario.ts
  • rum/views.scenario.ts
  • rum/vitals.scenario.ts
  • eventBridge.scenario.ts
  • logs.scenario.ts
  • microfrontend.scenario.ts
  • sessionStore.scenario.ts
  • telemetry.scenario.ts
  • trackingConsent.scenario.ts
  • transport.scenario.ts

todo:

  • CI/CD
  • other scenarios
  • browserstack integration
  • ???

Testing

Locally, run yarn playwright test --ui

Screenshot 2024-11-25 at 10 05 22

  • Local
  • Staging
  • Unit
  • End to end

I have gone over the contributing documentation.

Copy link

Bundles Sizes Evolution

📦 Bundle Name Base Size Local Size 𝚫 𝚫% Status
Rum 162.02 KiB 162.02 KiB 0 B 0.00%
Logs 55.89 KiB 55.89 KiB 0 B 0.00%
Rum Slim 110.86 KiB 110.86 KiB 0 B 0.00%
Worker 25.21 KiB 25.21 KiB 0 B 0.00%
🚀 CPU Performance
Action Name Base Average Cpu Time (ms) Local Average Cpu Time (ms) 𝚫
addglobalcontext 0.001 0.002 0.001
addaction 0.032 0.063 0.031
addtiming 0.001 0.001 0.000
adderror 0.033 0.042 0.009
startstopsessionreplayrecording 0.804 1.159 0.355
startview 1.036 1.617 0.580
logmessage 0.023 0.033 0.010
🧠 Memory Performance
Action Name Base Consumption Memory (bytes) Local Consumption Memory (bytes) 𝚫 (bytes)
addglobalcontext 7.16 KiB 7.39 KiB 241 B
addaction 39.56 KiB 38.95 KiB -629 B
addtiming 5.94 KiB 6.03 KiB 85 B
adderror 43.46 KiB 43.90 KiB 444 B
startstopsessionreplayrecording 4.51 KiB 4.40 KiB -109 B
startview 421.07 KiB 421.65 KiB 596 B
logmessage 40.69 KiB 40.90 KiB 223 B

🔗 RealWorld

@thomas-lebeau thomas-lebeau force-pushed the thomas.lebeau/playwright branch from 2d0d0e3 to ba625db Compare December 23, 2024 08:30
@thomas-lebeau thomas-lebeau force-pushed the thomas.lebeau/playwright branch from 1dd0038 to 8dfc67f Compare December 23, 2024 12:02
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.33%. Comparing base (9861f5a) to head (8dfc67f).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3159      +/-   ##
==========================================
- Coverage   93.34%   93.33%   -0.02%     
==========================================
  Files         287      287              
  Lines        7784     7784              
  Branches     1759     1759              
==========================================
- Hits         7266     7265       -1     
- Misses        518      519       +1     

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

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.

2 participants