(host: string)
| 114 | } |
| 115 | |
| 116 | async function expectHtmlOnARootPage(host: string) { |
| 117 | expect((await getPageHtml(host)).querySelector('.container h1')?.textContent).toBe( |
| 118 | `So fantasticto have you here` |
| 119 | ); |
| 120 | const heroComponentPath = join(global.tmpDir, `src/components/starter/hero/hero.tsx`); |
| 121 | const heroComponentTextContent = readFileSync(heroComponentPath, 'utf-8'); |
| 122 | writeFileSync( |
| 123 | heroComponentPath, |
| 124 | heroComponentTextContent.replace( |
| 125 | `to have <span class="highlight">you</span> here`, |
| 126 | `to have <span class="highlight">e2e tests</span> here` |
| 127 | ) |
| 128 | ); |
| 129 | // wait for the arbitrary amount of time before the app is reloaded |
| 130 | await new Promise((r) => setTimeout(r, 2000)); |
| 131 | expect((await getPageHtml(host)).querySelector('.container h1')?.textContent).toBe( |
| 132 | `So fantasticto have e2e tests here` |
| 133 | ); |
| 134 | } |
no test coverage detected
searching dependent graphs…