diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml deleted file mode 100644 index fe8dad72d..000000000 --- a/.github/workflows/e2e.yml +++ /dev/null @@ -1,51 +0,0 @@ -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -name: e2e -on: - push: - schedule: - - cron: "0 12 * * *" -jobs: - chrome: - runs-on: ubuntu-latest - services: - hub: - image: selenium/standalone-chrome - volumes: - - ${{ github.workspace }}:${{ github.workspace }} - ports: - - 4444:4444 - steps: - - uses: actions/checkout@v3 - - run: npm i - - run: npm run test:e2e - env: - GOOGLE_MAPS_API_KEY: ${{ secrets.SYNCED_GOOGLE_MAPS_API_KEY_WEB }} - firefox: - runs-on: ubuntu-latest - services: - hub: - image: selenium/standalone-firefox - volumes: - - ${{ github.workspace }}:${{ github.workspace }} - ports: - - 4444:4444 - steps: - - uses: actions/checkout@v3 - - run: npm i - - run: npm run test:e2e - env: - GOOGLE_MAPS_API_KEY: ${{ secrets.SYNCED_GOOGLE_MAPS_API_KEY_WEB }} - BROWSER: firefox diff --git a/e2e/README.md b/e2e/README.md deleted file mode 100644 index e69de29bb..000000000 diff --git a/package.json b/package.json index 33cdd7f10..db7e9eb23 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,6 @@ "lint": "eslint .", "prepare": "rm -rf dist && rollup -c", "test": "jest --passWithNoTests src/*", - "test:e2e": "jest --passWithNoTests e2e/*", "test:all": "jest" }, "dependencies": { @@ -54,18 +53,15 @@ "@types/d3-interpolate": "^3.0.1", "@types/google.maps": "^3.53.1", "@types/jest": "^27.0.1", - "@types/selenium-webdriver": "^4.0.9", "@types/supercluster": "^7.1.0", "@typescript-eslint/eslint-plugin": ">=4.1.0", "@typescript-eslint/parser": ">=4.1.0", - "chromedriver": "^113.0.0", "core-js": "^3.6.5", "d3-interpolate": "^3.0.1", "eslint": "^8.41.0", "eslint-config-prettier": "^8.3.0", "eslint-plugin-jest": "^27.0.1", "eslint-plugin-prettier": "^4.0.0", - "geckodriver": "^4.0.0", "jest": "^26.4.2", "prettier": "^2.1.1", "rollup": "^2.26.11", diff --git a/src/marker-utils.ts b/src/marker-utils.ts index 2461b2181..4fe8a8c01 100644 --- a/src/marker-utils.ts +++ b/src/marker-utils.ts @@ -37,7 +37,7 @@ export class MarkerUtils { if (this.isAdvancedMarker(marker)) { marker.map = map; } else { - (marker as google.maps.Marker).setMap(map); + marker.setMap(map); } } @@ -58,7 +58,7 @@ export class MarkerUtils { } return new google.maps.LatLng(null); } - return (marker as google.maps.Marker).getPosition(); + return marker.getPosition(); } public static getVisible(marker: Marker) { @@ -72,6 +72,6 @@ export class MarkerUtils { */ return true; } - return (marker as google.maps.Marker).getVisible(); + return marker.getVisible(); } }