aboutsummaryrefslogtreecommitdiffstats
path: root/tools/live-stream-test.js
diff options
context:
space:
mode:
Diffstat (limited to 'tools/live-stream-test.js')
-rw-r--r--tools/live-stream-test.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/live-stream-test.js b/tools/live-stream-test.js
index 7bc0228..4b8172d 100644
--- a/tools/live-stream-test.js
+++ b/tools/live-stream-test.js
@@ -145,6 +145,11 @@ try {
check('...titled, marked LIVE, with how many watch and who', tile.length && /LIVE/.test(tile[0]) && /12 watching/.test(tile[0]) && /Building coinos live/.test(tile[0]), JSON.stringify(tile));
check('...and a stream unrefreshed for two hours is not there', tile.length === 1 && !(await page.evaluate(() => document.body.innerText.includes('Forgotten stream'))));
check('a post linking the stream shows it as a card', await waitFor(() => !!document.querySelector('.notes-feed .live-card'), 15000));
+ check('the host\'s face on their post wears the live ring', await waitFor((pk) => !!document.querySelector('.notes-feed .note-post .note-avatar.live-ring'), 5000));
+ await page.evaluate(() => document.querySelector('.notes-feed .note-post .note-avatar.live-ring').click());
+ check('...and a tap on it opens the stream', await waitFor(() => !!document.querySelector('.live-page'), 5000));
+ await page.goBack();
+ await waitFor(() => !document.querySelector('.live-page') && !!document.querySelector('.live-strip'), 5000);
console.log('\n[the stream\'s page]');
await page.evaluate(() => document.querySelector('.live-strip .live-tile').click());