Take control over your live stream video by running it yourself. Streaming + chat out of the box.
HTML activitypubbroadcastingchatdecentralizedfederationfediversegolanghacktoberfesthlslivelivestreamowncastrtmpself-hostedstreaming-videovideo
Fix browser name change test not actually changing name
Gabe Kangase76fceadb949
diff --git a/test/automated/browser/main.test.js b/test/automated/browser/main.test.jsindex 2e273c1673..081f36615a 100644--- a/test/automated/browser/main.test.js+++ b/test/automated/browser/main.test.js@@ -23,24 +23,25 @@ const desktop = {const devices = [desktop, phone, tablet, tabletLandscape];describe('Frontend web page', () => {- beforeAll(async () => {- listenForErrors(browser, page);- await page.goto('http://localhost:5309');- await page.waitForTimeout(3000);- });+ beforeAll(async () => {+ listenForErrors(browser, page);+ await page.goto('http://localhost:5309');+ await page.waitForTimeout(3000);+ });++ devices.forEach(async function (device) {+ const newName = 'frontend-browser-test-name-change-' + device.name;+ const fakeMessage =+ 'this is a test chat message sent via the automated browser tests on the main web frontend from ' ++ device.name;- devices.forEach(async function (device) {- const newName = 'frontend-browser-test-name-change-'+device.name;- const fakeMessage =- 'this is a test chat message sent via the automated browser tests on the main web frontend from ' + device.name;-- interactiveChatTest(browser, page, newName, fakeMessage, device.name);- videoTest(browser, page);+ interactiveChatTest(browser, page, newName, fakeMessage, device.name);+ videoTest(browser, page);- await page.waitForTimeout(2000);- await page.screenshot({- path: 'screenshots/screenshot_main-' + device.name + '.png',- fullPage: true,- });+ await page.waitForTimeout(2000);+ await page.screenshot({+ path: 'screenshots/screenshot_main-' + device.name + '.png',+ fullPage: true,});+ });});diff --git a/test/automated/browser/tests/chat.js b/test/automated/browser/tests/chat.jsindex c9dfc58d26..b5065b8707 100644--- a/test/automated/browser/tests/chat.js+++ b/test/automated/browser/tests/chat.js@@ -32,11 +32,17 @@ async function interactiveChatTest(await page.evaluate(() =>document.querySelector('#username-change-input').click());++ await page.type('#username-change-input', newName);+await page.waitForSelector('#button-update-username');await page.evaluate(() =>document.querySelector('#button-update-username').click());++ // page.keyboard.press('Enter');+ await page.waitForTimeout(3000);});it('should allow typing a chat message', async () => {