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

Migrate remaining VPN Selenium tests to Playwright #14904

Merged
merged 2 commits into from
Sep 30, 2024

Conversation

alexgibson
Copy link
Member

@alexgibson alexgibson commented Jul 30, 2024

One-line summary

Add remaining tests for legacy VPN landing/pricing pages, as well as features page.

Issue / Bugzilla link

N/A

Testing

Successful test run: https://github.com/mozilla/bedrock/actions/runs/10159829857

Copy link

codecov bot commented Jul 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 77.88%. Comparing base (bb03d17) to head (b0e8ed5).
Report is 20 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #14904   +/-   ##
=======================================
  Coverage   77.88%   77.88%           
=======================================
  Files         163      163           
  Lines        8480     8480           
=======================================
  Hits         6605     6605           
  Misses       1875     1875           

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

@four-keys-mozilla four-keys-mozilla bot temporarily deployed to test July 30, 2024 09:30 Inactive
@alexgibson alexgibson added Needs Review Awaiting code review Review: XS Code review time: up to 30min labels Jul 30, 2024
@alexgibson alexgibson marked this pull request as ready for review July 30, 2024 10:00
@alexgibson alexgibson added the Frontend HTML, CSS, JS... client side stuff label Jul 30, 2024
@alexgibson alexgibson force-pushed the playwright-vpn branch 2 times, most recently from 7081513 to bd698d5 Compare July 31, 2024 15:20
@wen-2018 wen-2018 self-assigned this Aug 1, 2024
@wen-2018 wen-2018 removed their assignment Aug 19, 2024
@alexgibson alexgibson added the P3 Third level priority - Nice to have label Aug 22, 2024
@alexgibson alexgibson force-pushed the playwright-vpn branch 3 times, most recently from 2f4ff6a to 406dcd1 Compare August 30, 2024 08:06
@alexgibson alexgibson force-pushed the playwright-vpn branch 2 times, most recently from d8352a3 to b685514 Compare September 6, 2024 08:24
@alexgibson alexgibson force-pushed the playwright-vpn branch 2 times, most recently from ff94529 to c319715 Compare September 16, 2024 11:40
@stephaniehobson stephaniehobson self-assigned this Sep 17, 2024
Copy link
Contributor

@reemhamz reemhamz left a comment

Choose a reason for hiding this comment

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

Great job with this!
I just have one question and one nit highlighting that you missed a spot. It should be good to go after that. r+wc 🧮

const { test, expect } = require('@playwright/test');
const openPage = require('../../../scripts/open-page');
const url = '/en-US/products/vpn/features/';
const availableCountries = ['us', 'ca', 'gb', 'de', 'fr'];
Copy link
Contributor

Choose a reason for hiding this comment

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

Question: there are more countries where VPN is available in. Is this just a sample list to run the tests on some locations?

Copy link
Member Author

Choose a reason for hiding this comment

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

The landing page experience is the same for all countries where VPN is available for, so I don't think it adds much to repeat the same test dozens of times. I think these core countries should be enough.

bedrock/products/templates/products/vpn/landing.html Outdated Show resolved Hide resolved
@reemhamz reemhamz removed the Needs Review Awaiting code review label Sep 30, 2024
@alexgibson alexgibson merged commit 83a8df6 into mozilla:main Sep 30, 2024
3 checks passed
@alexgibson alexgibson deleted the playwright-vpn branch September 30, 2024 09:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Frontend HTML, CSS, JS... client side stuff P3 Third level priority - Nice to have Review: XS Code review time: up to 30min
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants