Skip to content

Rd 783 e2e for animated route layer #194

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

Conversation

lesbaa
Copy link
Contributor

@lesbaa lesbaa commented May 1, 2025

Objective

To add minimal e2e testing for AnimatedRouteLayer

Description

  • e2e test setup
  • AnimatedRouteLayer.test.js
  • visual snapshots
  • assertions regarding expected camera position, pitch, zoom etc

Acceptance

Tests passing

Checklist

  • [ ] I have added relevant info to the CHANGELOG.md N/A Until the feature branch is ready for release

@lesbaa lesbaa changed the base branch from main to RD-518/camera-helpers-and-better-maptraversal May 1, 2025 17:41
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This pull request introduces e2e tests for the AnimatedRouteLayer feature and updates related configuration and helper files. Key changes include:

  • Adding a new Vite config file for e2e testing.
  • Enhancing the AnimatedRouteLayer with extended documentation and a new updateManual method.
  • Creating various e2e test files and supporting helpers along with public HTML fixtures.

Reviewed Changes

Copilot reviewed 39 out of 44 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
vite.config-e2e.ts Sets up build inputs for e2e tests with minor naming details.
src/utils/MaptilerAnimation/types.ts Adjusts type imports and enum definition for easing functions.
src/custom-layers/AnimatedRouteLayer.ts Adds documentation, default assignments, and updateManual method.
playwright.config.ts Introduces Playwright configuration for parallel e2e testing.
e2e/tests/* files Provide e2e tests and helpers for map loading and layer animations.
e2e/src/* and e2e/public/* files Include source and HTML fixtures for e2e testing.
Files not reviewed (5)
  • e2e/public/animated-route.geojson: Language not supported
  • e2e/tests/expected-results/animatedRouteLayer-1.json: Language not supported
  • e2e/tests/mocks/maptiler-style.json: Language not supported
  • e2e/tsconfig.json: Language not supported
  • package.json: Language not supported
Comments suppressed due to low confidence (1)

vite.config-e2e.ts:8

  • The key 'animatedRoutLayer' appears to be missing an 'e'; consider renaming it to 'animatedRouteLayer' to maintain consistency with related file names.
animatedRoutLayer: "public/animatedRouteLayer.html",

@lesbaa lesbaa merged commit 497de82 into RD-518/camera-helpers-and-better-maptraversal May 2, 2025
1 check passed
@lesbaa lesbaa deleted the RD-783-e2e-for-animated-route-layer branch May 2, 2025 12:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants