Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set the toggle to true on New Account Review #3111

Merged
merged 3 commits into from
Mar 20, 2025

Conversation

akinsola-guardian
Copy link
Contributor

@akinsola-guardian akinsola-guardian commented Mar 19, 2025

What does this change?

Shows the advertisng and profiling sections by default for non ad-free users.

How to test

Tested in CODE.

@akinsola-guardian akinsola-guardian requested review from guardian-ci and removed request for guardian-ci March 19, 2025 12:10
@akinsola-guardian akinsola-guardian marked this pull request as ready for review March 19, 2025 14:26
@akinsola-guardian akinsola-guardian requested a review from a team as a code owner March 19, 2025 14:26
@@ -86,7 +86,7 @@ describe('New account review page', () => {
expect(consent.consented).to.be.true;
}
if (consent.id === 'personalised_advertising') {
expect(consent.consented).to.be.true;
expect(consent.consented).to.be.false;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was fine as it was.

The problem is on line 66 of the test file, where we click on the advertising checkbox.

With the change in this PR, we don't need that click anymore, as advertising is on by default, and we click to turn it off, whereas before advertising was off by default and we had to click to turn it on.

So we should remove this click, and update the comment

Suggested change
expect(consent.consented).to.be.false;
expect(consent.consented).to.be.true;

@akinsola-guardian akinsola-guardian force-pushed the al-set-new-account-review-toggle-true branch from a4a4d97 to 594f217 Compare March 19, 2025 14:51
@akinsola-guardian akinsola-guardian requested review from guardian-ci and removed request for guardian-ci March 19, 2025 14:53
@akinsola-guardian akinsola-guardian force-pushed the al-set-new-account-review-toggle-true branch from 594f217 to f161416 Compare March 19, 2025 15:39
@coldlink coldlink self-requested a review March 19, 2025 16:09
@coldlink coldlink removed the request for review from guardian-ci March 19, 2025 16:09
@akinsola-guardian akinsola-guardian merged commit ef06c1b into main Mar 20, 2025
21 checks passed
@akinsola-guardian akinsola-guardian deleted the al-set-new-account-review-toggle-true branch March 20, 2025 09:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants