test: fix toolbar hydration test under frozen suite (#32684)
This commit is contained in:
parent
825df6c074
commit
ec3db20743
|
|
@ -1039,9 +1039,12 @@ export class Recorder {
|
|||
|
||||
this.highlight.install();
|
||||
// some frameworks erase the DOM on hydration, this ensures it's reattached
|
||||
const recreationInterval = setInterval(() => {
|
||||
let recreationInterval: number | undefined;
|
||||
const recreate = () => {
|
||||
this.highlight.install();
|
||||
}, 500);
|
||||
recreationInterval = this.injectedScript.builtinSetTimeout(recreate, 500);
|
||||
};
|
||||
recreationInterval = this.injectedScript.builtinSetTimeout(recreate, 500);
|
||||
this._listeners.push(() => clearInterval(recreationInterval));
|
||||
|
||||
this.overlay?.install();
|
||||
|
|
|
|||
|
|
@ -744,7 +744,7 @@ await page.GetByLabel("Coun\\"try").ClickAsync();`);
|
|||
const recorder = await openRecorder();
|
||||
|
||||
const hydrate = () => {
|
||||
setTimeout(() => {
|
||||
window.builtinSetTimeout(() => {
|
||||
document.documentElement.innerHTML = '<p>Post-Hydration Content</p>';
|
||||
}, 500);
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue