diff --git a/addons/website/static/tests/tours/unsplash_beacon.js b/addons/website/static/tests/tours/unsplash_beacon.js
index 16677a80f02..8a97659f638 100644
--- a/addons/website/static/tests/tours/unsplash_beacon.js
+++ b/addons/website/static/tests/tours/unsplash_beacon.js
@@ -2,22 +2,9 @@
import { registry } from "@web/core/registry";
-if (window.location.search.includes("test_unsplash_beacon")) {
- // Patch RPC call.
- const oldGet = $.get.bind($);
- $.get = (url, data, success, dataType) => {
- if (url === "https://views.unsplash.com/v") {
- const imageEl = document.querySelector(`img[src^="/unsplash/${data.photo_id}/"]`);
- imageEl.dataset.beacon = "sent";
- return;
- }
- return oldGet(url, data, success, dataType);
- };
-}
-
registry.category("web_tour.tours").add("test_unsplash_beacon", {
test: true,
- url: "/?test_unsplash_beacon",
+ url: "/",
steps: [{
content: "Verify whether beacon was sent.",
trigger: 'img[data-beacon="sent"]',
diff --git a/addons/website/tests/test_unsplash_beacon.py b/addons/website/tests/test_unsplash_beacon.py
index d2f896ea664..6a92133a50d 100644
--- a/addons/website/tests/test_unsplash_beacon.py
+++ b/addons/website/tests/test_unsplash_beacon.py
@@ -16,8 +16,34 @@ class TestUnsplashBeacon(odoo.tests.HttpCase):
+
+