Update WNP24 monitor link utms (Issue #14296) (#14315)

This commit is contained in:
Alex Gibson 2024-03-13 10:06:18 +00:00 коммит произвёл GitHub
Родитель 2ea351eae4
Коммит 3f03ddea43
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
3 изменённых файлов: 4 добавлений и 3 удалений

Просмотреть файл

@ -54,7 +54,7 @@
it away.
</p>
<a href="https://monitor.mozilla.org/?utm_medium=firefox-desktop&utm_source=whatsnew&utm_campaign=welcome-page124&utm_content=v2-us" class="wnp-main-cta mzp-c-button mzp-t-product" data-cta-text="Start with a free scan" data-cta-type="button" target="_blank" rel="noopener">
<a href="https://monitor.mozilla.org/?utm_medium=firefox-desktop&utm_source=whatsnew&utm_campaign=whatsnew-page124&utm_content=v2-us" class="wnp-main-cta mzp-c-button mzp-t-product" data-cta-text="Start with a free scan" data-cta-type="button" target="_blank" rel="noopener">
Start with a free scan
</a>
</div>

Просмотреть файл

@ -58,7 +58,8 @@
it away.
</p>
<a href="https://monitor.mozilla.org/?utm_medium=firefox-desktop&utm_source=whatsnew&utm_campaign=welcome-page124&utm_content=v1-us" class="wnp-main-cta mzp-c-button mzp-t-product" data-cta-text="Start with a free scan" data-cta-type="button" target="_blank" rel="noopener">
{% set utm_content = 'v1-us' if variant == '1' else 'us' %}
<a href="https://monitor.mozilla.org/?utm_medium=firefox-desktop&utm_source=whatsnew&utm_campaign=whatsnew-page124&utm_content={{ utm_content }}" class="wnp-main-cta mzp-c-button mzp-t-product" data-cta-text="Start with a free scan" data-cta-type="button" target="_blank" rel="noopener">
Start with a free scan
</a>
</div>

Просмотреть файл

@ -9,7 +9,7 @@ from pages.firefox.whatsnew.whatsnew_124 import FirefoxWhatsNew124Page
@pytest.mark.skip_if_not_firefox(reason="Whatsnew pages are shown to Firefox only.")
@pytest.mark.nondestructive
@pytest.mark.parametrize("params", [("?v=1"), ("?v=2")])
@pytest.mark.parametrize("params", [("?v=1&geo=us"), ("?v=2&geo=us")])
def test_monitor_free_scan_button_displayed(params, base_url, selenium):
page = FirefoxWhatsNew124Page(selenium, base_url, params=params).open()
assert page.is_monitor_free_scan_button_displayed