[Address Bar 138+] Create test for Persist search term and searchmode interaction works correctly (google)
Categories
(Mozilla QA :: STArFox, task)
Tracking
(Not tracked)
People
(Reporter: cbaica, Unassigned)
References
(Blocks 1 open bug)
Details
Create test for Address Bar 138+ manual test case: Persist search term and searchmode interaction works correctly (google)
TestRail test ID: 3029213
STArFox test suite: address_bar_138+
Test Steps:
<p>Enable the feature by setting <strong>browser.urlbar.showSearchTerms.featureGate</strong> to true.</p>
<p>Have a <strong>VPN</strong> connected to US.<br />Set <em>browser.search.region</em> to US.<br />Have Google set as default engine.</p>
<p>Launch Firefox with the profile from the precondition.</p>
<p>Type a search term that generates ads in the urlbar and select DDG as search engine (from search oneoffs/USB), then make the search.</p>
<p>Click on an ad website from the result page.</p>
- <p>The website is loaded and its full URL is displayed in the URLbar.</p>
<p>Click the back button.</p> - <ul>
<li>The SERP from step 2 is displayed.</li>
</ul>
<p>Go to about:telemetry->Raw JSON and search for:</p>
<ul>
<li>browser.search.withads.urlbar_searchmode</li>
<li>browser.search.adclicks.urlbar_searchmode</li>
<li>ddg.urlbar-searchmode</li>
<li>browser.search.content.tabhistory</li>
</ul>
- *<p>The telemetry pings are successfully found with the correct format and count according to the engine used.</p>
<ul>
<li><p>"browser.search.withads.urlbar_searchmode": {<br /> "duckduckgo:tagged": 1</p></li>
<li><p>"browser.search.adclicks.urlbar_searchmode": {<br /> "duckduckgo:tagged": 1</p></li>
<li><p>"ddg.urlbar-searchmode": {<br /> "bucket_count": 3,<br /> "histogram_type": 4,<br /> "sum": 1,<br /> "range": [<br /> 1,<br /> 2</p></li>
<li><p>"browser.search.content.tabhistory": {<br /> "duckduckgo:tagged:ffab": 1</p></li>
</ul>*
<p>Repeat steps 2-4 using BING one-off search engine for searchmode.</p>
- *<p>Behavior matches the one when DDG was used:</p>
<ul>
<li>The SERP is reached</li>
</ul>*
<p>Go to about:telemetry->Raw JSON and search for:</p>
<ul>
<li>browser.search.withads.urlbar_searchmode</li>
<li>browser.search.adclicks.urlbar_searchmode</li>
<li>bing.urlbar-searchmode</li>
<li>browser.search.content.tabhistory</li>
</ul>
- *<p>The telemetry pings are successfully found with the correct format and count according to the engine used.</p>
<ul>
<li><p>"browser.search.withads.urlbar_searchmode": {<br /> "bing:tagged": 1</p></li>
<li><p>"browser.search.adclicks.urlbar_searchmode": {<br /> "bing:tagged": 1</p></li>
<li><p>"bing.urlbar-searchmode": {<br /> "bucket_count": 3,<br /> "histogram_type": 4,<br /> "sum": 1,<br /> "range": [<br /> 1,<br /> 2</p></li>
<li><p>"browser.search.content.tabhistory": {<br /> "bing:tagged:MOZI": 1</p></li>
</ul>*
Description
•