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 e2e test for the settings - map view #165

Open
petrvecera opened this issue Oct 1, 2024 · 0 comments
Open

Add e2e test for the settings - map view #165

petrvecera opened this issue Oct 1, 2024 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers hacktoberfest

Comments

@petrvecera
Copy link
Member

The tests are written here https://github.com/cohstats/coh3-stats-desktop-app/blob/master/test/specs/main.e2e.js

Add test under describe("Settings Screen", () => {

Steps:

  • Navigate to settings tab
  • Change the map view to "default" - check that the url for the image has marked in it's name https://cdn.coh3stats.com/maps/catania_crossing_6p/catania_crossing_6p.marked.webp verify that you can fetch the image using network requests - it returns 200 (not 404)
  • Repeat the same steps for the other types:
    • TM - tm
    • Colored - colored
    • None - it doesn't have colored / tm / marked in it's name

image

Running e2e tests https://github.com/cohstats/coh3-stats-desktop-app?tab=readme-ov-file#running-e2e-tests

@petrvecera petrvecera added enhancement New feature or request good first issue Good for newcomers hacktoberfest labels Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers hacktoberfest
Projects
None yet
Development

No branches or pull requests

1 participant