This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
IMAGE="mjanser/capifony" | |
CURRDIR=$(pwd) | |
if [ "$(uname)" == "Darwin" ]; then | |
# under Mac OS X platform | |
command -v jq >/dev/null 2>&1 || { echo >&2 "please install jq with \"brew install jq\" or \"port install jq\""; exit 1; } | |
docker pull $IMAGE | |
ENTRYPOINT=$(docker inspect $IMAGE | jq -r '.[0].ContainerConfig.Entrypoint[0]') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* see https://github.com/theopenwebjp/get-user-media-mock | |
*/ | |
import { Page } from '@playwright/test'; | |
export const mockUserMedia = async (page: Page) => { | |
// eslint-disable-next-line sonarjs/cognitive-complexity | |
return await page.addInitScript(() => { | |
/* eslint-disable @typescript-eslint/ban-ts-comment */ | |
/** |