== Background
We want to measure the impact of the new donate banner.
== User story
As a PM I want to ensure I'm not impacting donates to Wikipedia.
== Requirements
Per instrumentation phase spec 1 (https://docs.google.com/spreadsheets/d/1L77K4Vvi8k7VcmHSTDKnwwasxAHGy1XRjTvrzUcs3rs/edit?gid=0#gid=0)
[] Enable on test so that Jennifer can begin QA of data
[] We need an event that occurs when the page is loaded (init)
[] We need an event that occurs when the main menu is opened
[] We need an event that occurs when the old donate banner is clicked.
[] We need an event that occurs when the new donate banner is clicked.
[] Enable on Catalan Wiki so that Jennifer can QA data
== BDD
```
Feature: Fix and QA donate link instrumentation
Scenario: Event fires when the page is loaded
Given I visit a Minerva-skinned page
When the page loads
Then an event should be logged for page init
Scenario: Event fires when the main menu is opened
Given I visit a Minerva-skinned page
When I open the main menu
Then an event should be logged for menu open
Scenario: Event fires when the old donate banner is clicked
Given I visit a Minerva-skinned page with the old donate banner
When I click the old donate banner
Then an event should be logged for the old donate banner click
Scenario: Event fires when the new donate banner is clicked
Given I visit a Minerva-skinned page with the new donate banner
When I click the new donate banner
Then an event should be logged for the new donate banner click
```
== Test Steps
Test Case 1: Verify event fires when the page is loaded
1. Visit a Minerva-skinned page.
2. Open the developer console and run:
```
mw.loader.using('mediawiki.api').then(function () {
new mw.Api().saveOption('eventlogging-display-console', '1');
});
```
3. Refresh the page.
4. AC1: Confirm that an event is logged for page init.
Test Case 2: Verify event fires when the main menu is opened
1. Visit a Minerva-skinned page.
2. Open the developer console and enable event logging (see step 2 in Test Case 1).
3. Open the main menu.
4. AC2: Confirm that an event is logged for menu open.
Test Case 3: Verify event fires when the old donate banner is clicked
1. Visit a Minerva-skinned page with the old donate banner enabled.
2. Open the developer console and enable event logging (see step 2 in Test Case 1).
3. Click the old donate banner.
4. AC3: Confirm that an event is logged for old donate banner click.
Test Case 4: Verify event fires when the new donate banner is clicked
1. Visit a Minerva-skinned page with the new donate banner enabled.
2. Open the developer console and enable event logging (see step 2 in Test Case 1).
3. Click the new donate banner.
4. AC4: Confirm that an event is logged for new donate banner click.
== Design
- Add mockups and design requirements
== Acceptance criteria
- Add acceptance criteria
== Communication criteria - does this need an announcement or discussion?
N/A
== Rollback plan
N/A
== QA Results - Beta
| **AC** | **Status** | **Details** |
| ----- | ----- | ----- |
| 1 | ✅ | T387768#10630082 |
| 2 | ✅ | T387768#10630082 |
| 3 | ✅ | T387768#10630082 |
| 4 | ⬜ | T387768#10630082 |
//This task was created by Version 1.2.0 of the [[ https://mediawiki.org/w/index.php?title=Reading/Web/Request_process | Web team task template ]] using [[ https://phabulous.toolforge.org/ | phabulous ]] //