mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 05:11:16 +00:00
Bug 1895134 - Remove redundant telemetry test - r=scunnane
Differential Revision: https://phabricator.services.mozilla.com/D224945
This commit is contained in:
parent
a4bb5511b6
commit
82d7249fab
@ -38,62 +38,8 @@ add_setup(async function () {
|
||||
});
|
||||
});
|
||||
|
||||
// If an anchor is a non_ads_link and it doesn't match a non-ads regular
|
||||
// expression, it should still be categorize it as a non ad.
|
||||
add_task(async function test_click_non_ads_link() {
|
||||
await waitForIdle();
|
||||
|
||||
resetTelemetry();
|
||||
let url = getSERPUrl("searchTelemetryAd_components_text.html");
|
||||
let tab = await BrowserTestUtils.openNewForegroundTab(gBrowser, url);
|
||||
await waitForPageWithAdImpressions();
|
||||
|
||||
// Click a non ad.
|
||||
let pageLoadPromise = BrowserTestUtils.waitForLocationChange(gBrowser);
|
||||
await BrowserTestUtils.synthesizeMouseAtCenter(
|
||||
"#non_ads_link",
|
||||
{},
|
||||
tab.linkedBrowser
|
||||
);
|
||||
await pageLoadPromise;
|
||||
|
||||
assertSERPTelemetry([
|
||||
{
|
||||
impression: {
|
||||
provider: "example",
|
||||
tagged: "true",
|
||||
partner_code: "ff",
|
||||
source: "unknown",
|
||||
is_shopping_page: "false",
|
||||
is_private: "false",
|
||||
shopping_tab_displayed: "false",
|
||||
is_signed_in: "false",
|
||||
},
|
||||
engagements: [
|
||||
{
|
||||
action: SearchSERPTelemetryUtils.ACTIONS.CLICKED,
|
||||
target: SearchSERPTelemetryUtils.COMPONENTS.NON_ADS_LINK,
|
||||
},
|
||||
],
|
||||
adImpressions: [
|
||||
{
|
||||
component: SearchSERPTelemetryUtils.COMPONENTS.AD_LINK,
|
||||
ads_loaded: "13",
|
||||
ads_visible: "13",
|
||||
ads_hidden: "0",
|
||||
},
|
||||
],
|
||||
},
|
||||
]);
|
||||
|
||||
BrowserTestUtils.removeTab(tab);
|
||||
|
||||
// Reset state for other tests.
|
||||
SearchSERPTelemetry.overrideSearchTelemetryForTests(TEST_PROVIDER_INFO);
|
||||
await waitForIdle();
|
||||
});
|
||||
|
||||
// Click on an non-ad element while no ads are present.
|
||||
// Click on an non-ad element while no ads are present. The non-ad is also
|
||||
// not included in nonAdsLinkRegexps.
|
||||
add_task(async function test_click_non_ad_with_no_ads() {
|
||||
await waitForIdle();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user