Fix tests
This commit is contained in:
parent
79610e2e4e
commit
74c71445b4
@ -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();
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user