Fix tests

This commit is contained in:
Ingo Oppermann 2023-09-22 15:11:10 +02:00
parent 79610e2e4e
commit 74c71445b4
No known key found for this signature in database
GPG Key ID: 2AB32426E9DD229E

View File

@ -60,7 +60,7 @@ const restreamer = {
Probe: (id, inputs) => {
let streams = [];
if (inputs[0].address === 'rtmp://localhost/live/external.stream?token=foobar') {
if (inputs[0].address === '{rtmp,name=external.stream}') {
streams.push({
url: inputs[0].address,
format: 'rtmp',
@ -99,7 +99,7 @@ const restreamer = {
layout: 'stereo',
channels: 2,
});
} else if (inputs[0].address === 'srt://localhost?mode=caller&transtype=live&streamid=external,mode:request,token:foobar&passphrase=bazfoobazfoo') {
} else if (inputs[0].address === '{srt,name=external.stream,mode=request}') {
streams.push({
url: inputs[0].address,
format: 'srt',
@ -335,6 +335,8 @@ test('wizard: rtmp source video h264-aac', async () => {
let button = screen.getByRole('button', { name: 'RTMP server' });
fireEvent.click(button);
expect(screen.queryByText(/Send stream to this address:/)).toBeInTheDocument();
button = screen.getByRole('button', { name: 'Next' });
expect(button).toBeEnabled();