Skip to content
This repository has been archived by the owner on Jun 28, 2024. It is now read-only.

Commit

Permalink
Fix e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kamil-stasiak committed Jun 4, 2024
1 parent e80463b commit 08e7927
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
2 changes: 2 additions & 0 deletions e2e/app/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 7 additions & 4 deletions e2e/app/src/MockComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@ import {
SimulcastConfig,
WebRTCEndpoint,
} from '@fishjam-dev/ts-client';
import { MuteTrackTest } from "./MuteTrackTest";

const brainMock = createStream('🧠', 'white', 'low', 24);
const brain2Mock = createStream('🤯', '#00ff00', 'low', 24);
const heartMock = createStream('🫀', 'white', 'low', 24);
const heart2Mock = createStream('💝', '#FF0000', 'low', 24);
export const brainMock = createStream('🧠', 'white', 'low', 24);
export const brain2Mock = createStream('🤯', '#00ff00', 'low', 24);
export const heartMock = createStream('🫀', 'white', 'low', 24);
export const heart2Mock = createStream('💝', '#FF0000', 'low', 24);

type Props = {
webrtc: WebRTCEndpoint<EndpointMetadata, TrackMetadata>;
Expand Down Expand Up @@ -148,6 +149,8 @@ export const MockComponent = ({ webrtc }: Props) => {
<button onClick={addBoth}>Add both</button>
<button onClick={addAndReplaceHeart}>Add and replace a heart</button>
<button onClick={addAndRemoveHeart}>Add and remove a heart</button>

<MuteTrackTest webrtc={webrtc}/>
</div>
);
};
1 change: 1 addition & 0 deletions e2e/app/src/VideoPlayerWithDetector.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { useEffect, useRef, useState } from 'react';
import { getPixel, Pixel } from './mocks';
import { WebRTCEndpoint } from "@fishjam-dev/ts-client";

type Props = {
stream?: MediaStream;
Expand Down

0 comments on commit 08e7927

Please sign in to comment.