fix(seg hydration): auto-hydrate RT struct on second load with disableConfirmationPrompts (#5875)
This commit is contained in:
1 parent
0f822aaf48
commit
6f773f9972
11 files changed
+166
-17
No files matched your search
@@ -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);
|
||||
}
|
||||
Reference in new issue
Block a user