(expectedHash: string)
| 75 | } |
| 76 | |
| 77 | async function waitForHash(expectedHash: string) { |
| 78 | const visibleHash = expectedHash || '(empty)'; |
| 79 | await waitFor(element(by.id('current-hash'))) |
| 80 | .toHaveText(`currentHash: ${visibleHash}`) |
| 81 | .withTimeout(RELOAD_TIMEOUT); |
| 82 | } |
| 83 | |
| 84 | async function waitForMarkSuccess() { |
| 85 | await waitFor(element(by.id('last-event'))) |