summaryrefslogtreecommitdiffstats
path: root/testing/webcompat/shims/tests/test_1762851_google_publisher_tags.py
blob: 3b52ce848046a951dfca56a00654ae01ebd37d65 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import pytest

URL = "https://www.carousell.sg/search/ps3/?searchId=DjgOQf"
PLACEHOLDER = "[id*='Desktop_Search_FWB']"


from .common import GPT_SHIM_MSG, is_gtag_placeholder_displayed


@pytest.mark.asyncio
@pytest.mark.with_strict_etp
@pytest.mark.with_shims
async def test_enabled(client):
    assert not await is_gtag_placeholder_displayed(
        client, URL, client.css(PLACEHOLDER), await_console_message=GPT_SHIM_MSG
    )


@pytest.mark.asyncio
@pytest.mark.with_strict_etp
@pytest.mark.without_shims
async def test_disabled(client):
    assert not await is_gtag_placeholder_displayed(client, URL, client.css(PLACEHOLDER))