2022-03-31 11:10:50 +00:00
|
|
|
export async function preventCompatibilityNotice() {
|
|
|
|
await page.evaluate( () => {
|
2022-06-09 12:47:17 +00:00
|
|
|
window.localStorage.setItem(
|
2022-03-31 11:10:50 +00:00
|
|
|
'wc-blocks_dismissed_compatibility_notices',
|
|
|
|
'["checkout"]'
|
|
|
|
);
|
|
|
|
} );
|
|
|
|
}
|
|
|
|
|
|
|
|
export async function reactivateCompatibilityNotice() {
|
|
|
|
await page.evaluate( () => {
|
2022-06-09 12:47:17 +00:00
|
|
|
window.localStorage.removeItem(
|
|
|
|
'wc-blocks_dismissed_compatibility_notices'
|
|
|
|
);
|
2022-03-31 11:10:50 +00:00
|
|
|
} );
|
|
|
|
}
|