| 144 | page.evaluate(() => globalThis.__handshakeOrder ?? []); |
| 145 | |
| 146 | const readConsoleStyle = ( |
| 147 | page: Page, |
| 148 | ): Promise<{ primary: string; buttonBg: string; styleSheets: number }> => |
| 149 | page.evaluate(() => { |
| 150 | const button = document.querySelector("button"); |
| 151 | return { |
| 152 | primary: getComputedStyle(document.documentElement).getPropertyValue("--primary").trim(), |
| 153 | buttonBg: button ? getComputedStyle(button).backgroundColor : "", |
| 154 | styleSheets: document.styleSheets.length, |
| 155 | }; |
| 156 | }); |
| 157 | |
| 158 | scenario( |
| 159 | "Artifacts · create-artifact hands a non-Apps client a deep link that renders the live component", |