Skip to content

Commit

Permalink
test: fixing lingering consent in local storage following sourcepoint…
Browse files Browse the repository at this point in the history
… upgrade (#748)
  • Loading branch information
sookburt committed May 19, 2023
1 parent b0ec83b commit ada7a2f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions monitoring/src/check-page/tcfv2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ export const secondLayerCheck = async function (
): Promise<void> {
const client = await page.target().createCDPSession();
await clearCookies(client);
await clearLocalStorage(page);

log_info('Checking second layer: Start');

Expand All @@ -225,6 +226,7 @@ export const secondLayerCheck = async function (
log_info('Starting Reject All check');
// Testing the Reject All button hides the CMP and does not load Ads
await clearCookies(client);
await clearLocalStorage(page);

await reloadPage(page);

Expand Down

1 comment on commit ada7a2f

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

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

Coverage report

St.
Category Percentage Covered / Total
🟢 Statements 92.12% 222/241
🟢 Branches 85.44% 88/103
🟢 Functions 88.71% 55/62
🟢 Lines 91.81% 213/232

Test suite run success

327 tests passing in 15 suites.

Report generated by 🧪jest coverage report action from ada7a2f

Please sign in to comment.