Background
- The introduction of the Vector 2022 skin moved the donate link from being available on pageload to a collapsed state under the main menu. We would like to experiment with adding the donate link to be accessible only with one click
User story
- As a donor, I want the ability to find the link to donate quickly, so that it's easier for me to donate
Requirements
- Donate link should appear at the top of the page as per the mock for anonymous users only
- For logged-in users, donate link should remain in the sidebar
- For temporary accounts, the link should remain in the sidebar
- Breakpoints for the top bar should not change
- Clicks to the donate link should be tracked as they are right now
- Feature should have a feature flag
Requirement
Ensure that the donation entry point is moved to the top of the page for anonymous users in the Vector 2022 skin, while it remains in the sidebar for logged-in and temporary accounts. The functionality should include click tracking and be controlled via a feature flag.
BDD
Feature: Move Donation Entry Point on Vector 2022 Scenario: Show donate link at the top of the page for anonymous users Given the user is anonymous When the page loads Then the donate link should appear at the top of the page Scenario: Keep donate link in the sidebar for logged-in users Given the user is logged in When the page loads Then the donate link should remain in the sidebar Scenario: Keep donate link in the sidebar for temporary accounts Given the user has a temporary account When the page loads Then the donate link should remain in the sidebar Scenario: Track clicks to the donate link Given the user clicks the donate link Then the click should be tracked
Test Steps
Test Case 1: Verify Donate Link at Top of Page for Anonymous Users
- Log out and navigate to the Vector 2022 skin.
- AC1: Confirm that the donate link is visible at the top of the page.
Test Case 2: Verify Donate Link in Sidebar for Logged-In Users
- Log in and navigate to the Vector 2022 skin.
- AC2: Confirm that the donate link is in the sidebar.
Test Case 3: Verify Donate Link in Sidebar for Temporary Accounts
- Create a temporary account and navigate to the Vector 2022 skin.
- AC3: Confirm that the donate link is in the sidebar.
Test Case 4: Verify Click Tracking for Donate Link
- Click on the donate link as any type of user.
- AC4: Confirm that the click is tracked.
(https://www.figma.com/design/ZuwkGkyEV2LrNn09sEqJiX/WE3.1-Content-Discovery?node-id=1-2&t=OaaN9h3fR4DtyRCt-0) Vector 2022 only for the scope of this ticket
Acceptance criteria
- All requirements should be completed
Communication criteria - does this need an announcement or discussion?
- Discuss with @sgrabarczuk
Rollback plan
- What is the rollback plan in production for this task if something goes wrong?
This task was created by Version 1.2.0 of the Web team task template using phabulous
QA Results - Beta
AC | Status | Details |
---|---|---|
1 | ❌ | T372757#10123922 will resolve in T373566 |
2 | ✅ | T372757#10123922 |
3 | ✅ | T372757#10123922 |
4 | ✅ | T372757#10123922 |