fix(seg hydration): auto-hydrate RT struct on second load with disableConfirmationPrompts (#5875)

This commit is contained in:
Ghadeer Albattarni authored and GitHub committed 2026-03-09 09:08:21 -04:00
1 parent 0f822aaf48
commit 6f773f9972
11 files changed
+166 -17

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
import { Page } from 'playwright-test-coverage';
export async function addOHIFConfiguration(page: Page, configToAdd: Record<string, unknown>) {
await page.addInitScript(config => {
let _config;
Object.defineProperty(window, 'config', {
get() {
return _config;
},
set(value) {
_config = {
...value,
...config,
};
},
configurable: true,
});
}, configToAdd);
}