()
| 38 | |
| 39 | // go to /another |
| 40 | async function goFromHomeToAnother() { |
| 41 | await browser.eval('window.beforeAnother = true') |
| 42 | await browser.elementByCss('#another').click() |
| 43 | await browser.waitForElementByCss('#home') |
| 44 | text = await browser.elementByCss('p').text() |
| 45 | expect(await browser.eval('window.beforeAnother')).toBe(true) |
| 46 | expect(text).toMatch(/hello.*?world/) |
| 47 | } |
| 48 | await goFromHomeToAnother() |
| 49 | |
| 50 | // go to / |
no test coverage detected