(
page: Page,
shot: {
readySelector?: string;
readyText?: string | RegExp;
readyTimeout?: number;
},
)
| 84 | }; |
| 85 | |
| 86 | const waitForDocShotReady = async ( |
| 87 | page: Page, |
| 88 | shot: { |
| 89 | readySelector?: string; |
| 90 | readyText?: string | RegExp; |
| 91 | readyTimeout?: number; |
| 92 | }, |
| 93 | ): Promise<void> => { |
| 94 | if (shot.readySelector == null) { |
| 95 | return; |
| 96 | } |
| 97 | await expectedFramedElement( |
| 98 | page, |
| 99 | shot.readySelector, |
| 100 | shot.readyText, |
| 101 | shot.readyTimeout, |
| 102 | ); |
| 103 | }; |
| 104 | |
| 105 | const stabilizeDocShot = async ( |
| 106 | page: Page, |
no test coverage detected
searching dependent graphs…