Steps to replicate the issue (include links if applicable):
- Visit beta cluster
- Enable event logging to developer console
mw.loader.using( 'mediawiki.api' ).then( function () {
new mw.Api().saveOption( 'eventlogging-display-console', '1' );
} );- Refresh page
- Confirm an event is fired to product_metrics.web_base.search_ab_test_session_ticks
- Confirm after 30 seconds another event is fired to product_metrics.web_base.search_ab_test_session_ticks
What happens?:
What should have happened instead?:
Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):
Other information (browser name/version, screenshots, etc.):
Requirement
Verify that product_metrics.web_base.search_ab_test_session_ticks events are correctly logged in the beta cluster when the session starts and at 30-seconds.
BDD
Feature: Ensure product_metrics.web_base.search_ab_test_session_ticks events fire correctly
Scenario: Verify an event fires when the page loads
Given a user visits the beta cluster
When event logging is enabled in the developer console
And the page is refreshed
Then an event should be logged to product_metrics.web_base.search_ab_test_session_ticks
Scenario: Verify a second event fires after 30 seconds
Given an event was fired on page load
When 30 seconds pass
Then another event should be logged to product_metrics.web_base.search_ab_test_session_ticksTest Steps
Test Case 1: Verify an event fires on page load
- Visit the beta cluster.
- Open the developer console.
- Enable event logging by running the following command:
mw.loader.using('mediawiki.api').then(function () {
new mw.Api().saveOption('eventlogging-display-console', '1');
});- Refresh the page.
- Observe the console and confirm that an event is logged to product_metrics.web_base.search_ab_test_session_ticks.
- AC1: An event fires on page load.
Test Case 2: Verify a second event fires after 30 seconds
- Follow Test Case 1 to enable event logging and refresh the page.
- Wait 30 seconds without interacting with the page.
- Observe the console and confirm that another event is logged to product_metrics.web_base.search_ab_test_session_ticks.
- AC2: A second event fires after 30 seconds.

