index int64 0 0 | repo_id stringlengths 16 181 | file_path stringlengths 28 270 | content stringlengths 1 11.6M | __index_level_0__ int64 0 10k |
|---|---|---|---|---|
0 | petrpan-code/stream-labs/desktop/test/helpers/modules | petrpan-code/stream-labs/desktop/test/helpers/modules/forms/textarea.ts | import { TextInputController } from './text';
export class TextareaInputController extends TextInputController {}
| 9,300 |
0 | petrpan-code/stream-labs/desktop/test/helpers/modules | petrpan-code/stream-labs/desktop/test/helpers/modules/settings/settings.ts | import {
click,
clickButton,
clickCheckbox,
focusChild,
useChildWindow,
useMainWindow,
} from '../core';
import { mkdtemp } from 'fs-extra';
import { tmpdir } from 'os';
import * as path from 'path';
import { setInputValue } from '../forms/base';
import { FormMonkey } from '../../form-monkey';
import { TExe... | 9,301 |
0 | petrpan-code/stream-labs/desktop/test/helpers | petrpan-code/stream-labs/desktop/test/helpers/webdriver/assertions.ts | import { TExecutionContext } from './index';
import { FormMonkey } from '../form-monkey';
export async function assertOptions(
t: TExecutionContext,
inputName: string,
expectedValue: string,
expectedOptions: string[],
) {
const form = new FormMonkey(t);
const input = await form.getInput(inputName);
const... | 9,302 |
0 | petrpan-code/stream-labs/desktop/test/helpers | petrpan-code/stream-labs/desktop/test/helpers/webdriver/context-menu.ts | // Helpers for ineracting with context menus
import { getClient } from '../modules/core';
export async function contextMenuClick(label: string | string[]) {
// There's probably a simpler way to handle this
await getClient().execute(
`(() => { var _elec = require('electron'); _elec.ipcRenderer.send('__WEBDRIVE... | 9,303 |
0 | petrpan-code/stream-labs/desktop/test/helpers | petrpan-code/stream-labs/desktop/test/helpers/webdriver/dialog.ts | import { getClient } from '../modules/core';
export async function dialogDismiss(buttonLabel: string) {
// There's probably a simpler way to handle this
await getClient().execute(
`(() => { var _elec = require('electron'); _elec.ipcRenderer.send('__WEBDRIVER_FAKE_MESSAGE_BOX', '${buttonLabel}'); })();`,
);
}... | 9,304 |
0 | petrpan-code/stream-labs/desktop/test/helpers | petrpan-code/stream-labs/desktop/test/helpers/webdriver/forms.ts | // Tools for dealing with forms in webdriver
import { TExecutionContext } from './index';
import { getClient, waitForDisplayed } from '../modules/core';
export async function setFormInput(label: string, value: string, index = 0) {
const $el = (await getClient().$$(`label=${label}`))[index];
const $input = await (... | 9,305 |
0 | petrpan-code/stream-labs/desktop/test/helpers | petrpan-code/stream-labs/desktop/test/helpers/webdriver/index.ts | /// <reference path="../../../app/index.d.ts" />
/// <reference path="../../../app/jsx.d.ts" />
import avaTest, { afterEach, ExecutionContext } from 'ava';
import { getApiClient } from '../api-client';
import { DismissablesService } from 'services/dismissables';
import { getUser, logOut } from './user';
import { sleep ... | 9,306 |
0 | petrpan-code/stream-labs/desktop/test/helpers | petrpan-code/stream-labs/desktop/test/helpers/webdriver/modals.ts | import { TExecutionContext } from '.';
import { sleep } from '../sleep';
export async function dismissModal(t: TExecutionContext) {
// For some reason, clicking to dismiss the modal isn't working on the latest
// version of webdriverio, so we dismiss with the escape key instead
await t.context.app.client.keys('E... | 9,307 |
0 | petrpan-code/stream-labs/desktop/test/helpers | petrpan-code/stream-labs/desktop/test/helpers/webdriver/network.ts | import { TExecutionContext } from './index';
import { focusWindow } from '../modules/core';
/**
* install the fetch-mock lib
*/
export async function installFetchMock(t: TExecutionContext) {
await focusWindow('worker');
await t.context.app.client.execute(`
window.fetchMock = require('fetch-mock');
0; // ... | 9,308 |
0 | petrpan-code/stream-labs/desktop/test/helpers | petrpan-code/stream-labs/desktop/test/helpers/webdriver/runner-utils.ts | /**
* This file provides patches for AVA that allow to track failed tests to re-run them
* Also it skips the tests that should be run on an different CI agent in a parallel execution mode
*/
import avaTest, { TestInterface } from 'ava';
import { ITestContext } from './index';
import { uniq } from 'lodash';
const fs... | 9,309 |
0 | petrpan-code/stream-labs/desktop/test/helpers | petrpan-code/stream-labs/desktop/test/helpers/webdriver/user.ts | import { TExecutionContext } from './index';
import { TPlatform } from '../../../app/services/platforms';
import { sleep } from '../sleep';
import { dialogDismiss } from './dialog';
import { ExecutionContext } from 'ava';
import { requestUtilsServer, USER_POOL_TOKEN } from './runner-utils';
import { getApiClient } from... | 9,310 |
0 | petrpan-code/stream-labs/desktop/test | petrpan-code/stream-labs/desktop/test/performance/config.json | {
"baseBranch": "staging",
"dist": "test-dist/performance",
"compiledTestsDist": "test-dist/test"
}
| 9,311 |
0 | petrpan-code/stream-labs/desktop/test | petrpan-code/stream-labs/desktop/test/performance/meter.ts | const fs = require('fs-extra');
type TMeterEvent =
| 'mainWindowShow'
| 'sceneCollectionLoad'
| 'CPU'
| 'memory'
| 'renderer-js'
| 'updater-js'
| 'addSources'
| 'removeSources'
| 'addNodes'
| 'removeNodes';
const units: { [key in TMeterEvent]: string } = {
mainWindowShow: 'ms',
sceneCollection... | 9,312 |
0 | petrpan-code/stream-labs/desktop/test | petrpan-code/stream-labs/desktop/test/performance/performance-test-runner.js | require('dotenv').config();
const { checkoutBranch, getCommitSHA, getCommitInfo, exec } = require('../helpers/repo');
const fs = require('fs-extra');
const { GithubClient } = require('../../scripts/github-client');
const path = require('path');
const { CI, SLOBS_TEST_USER_POOL_TOKEN, BUILD_REASON } = process.env;
const... | 9,313 |
0 | petrpan-code/stream-labs/desktop/test | petrpan-code/stream-labs/desktop/test/performance/tools.ts | let lastEventTime = 0;
import { afterAppStart, afterAppStop, TExecutionContext, useWebdriver } from '../helpers/webdriver';
import test, { ExecutionContext } from 'ava';
import { getApiClient } from '../helpers/api-client';
import { PerformanceService } from '../../app/services/performance';
import { getMeter } from '.... | 9,314 |
0 | petrpan-code/stream-labs/desktop/test/performance | petrpan-code/stream-labs/desktop/test/performance/tests/performance-tests.ts | import { MetricsService } from '../../../app/services/metrics';
import { test, stopApp, startApp, TExecutionContext } from '../../helpers/webdriver';
import { ApiClient, getApiClient } from '../../helpers/api-client';
import { TSourceType } from '../../../app/services/sources/sources-api';
import { ScenesService } from... | 9,315 |
0 | petrpan-code/stream-labs/desktop/test | petrpan-code/stream-labs/desktop/test/regular/filters.ts | import { useWebdriver, test } from '../helpers/webdriver';
import { addFilter, openFiltersWindow, removeFilter } from '../helpers/modules/filters';
import { addSource } from '../helpers/modules/sources';
import { focusChild, isDisplayed, waitForDisplayed } from '../helpers/modules/core';
useWebdriver({
restartAppAft... | 9,316 |
0 | petrpan-code/stream-labs/desktop/test | petrpan-code/stream-labs/desktop/test/regular/highlighter.ts | import { test, useWebdriver } from '../helpers/webdriver';
import { sleep } from '../helpers/sleep';
import { setTemporaryRecordingPath } from '../helpers/modules/settings/settings';
import {
click,
clickButton,
focusMain,
getClient,
select,
waitForDisplayed,
} from '../helpers/modules/core';
import { showP... | 9,317 |
0 | petrpan-code/stream-labs/desktop/test | petrpan-code/stream-labs/desktop/test/regular/media-backup.ts | import { startApp, stopApp, test, useWebdriver, skipCheckingErrorsInLog } from '../helpers/webdriver';
import { getApiClient } from '../helpers/api-client';
const path = require('path');
import fse = require('fs-extra');
import fs = require('fs');
import os = require('os');
import { logIn } from '../helpers/webdriver/... | 9,318 |
0 | petrpan-code/stream-labs/desktop/test | petrpan-code/stream-labs/desktop/test/regular/mixer.ts | import { useWebdriver, test } from '../helpers/webdriver';
import {
addSource,
selectSource,
clickRemoveSource,
addExistingSource,
} from '../helpers/modules/sources';
import { addScene } from '../helpers/modules/scenes';
import { click, focusChild, focusMain, waitForDisplayed } from '../helpers/modules/core';
... | 9,319 |
0 | petrpan-code/stream-labs/desktop/test | petrpan-code/stream-labs/desktop/test/regular/notifications.ts | import { useWebdriver, test, skipCheckingErrorsInLog } from '../helpers/webdriver';
import { getApiClient } from '../helpers/api-client';
import { PerformanceService } from 'app-services';
import { click, focusChild, waitForDisplayed, waitForText } from '../helpers/modules/core';
useWebdriver();
test('Receiving notif... | 9,320 |
0 | petrpan-code/stream-labs/desktop/test | petrpan-code/stream-labs/desktop/test/regular/obs-importer.ts | import { debugPause, skipCheckingErrorsInLog, test, useWebdriver } from '../helpers/webdriver';
import { sceneExisting, switchCollection } from '../helpers/modules/scenes';
import { sourceIsExisting } from '../helpers/modules/sources';
import { getApiClient } from '../helpers/api-client';
import { WidgetsService } from... | 9,321 |
0 | petrpan-code/stream-labs/desktop/test | petrpan-code/stream-labs/desktop/test/regular/onboarding.ts | import { test, useWebdriver } from '../helpers/webdriver';
import { logIn } from '../helpers/webdriver/user';
import { sleep } from '../helpers/sleep';
import { click, focusMain, isDisplayed } from '../helpers/modules/core';
useWebdriver({ skipOnboarding: false });
test('Go through the onboarding and autoconfig', asy... | 9,322 |
0 | petrpan-code/stream-labs/desktop/test | petrpan-code/stream-labs/desktop/test/regular/performance-metrics.ts | import { useWebdriver, test } from '../helpers/webdriver';
import { click, focusChild, select, waitForDisplayed } from '../helpers/modules/core';
useWebdriver();
test('Performance metrics', async t => {
await click('.metrics-icon');
await focusChild();
await waitForDisplayed('h2=Live Stats');
const $cpu = awa... | 9,323 |
0 | petrpan-code/stream-labs/desktop/test | petrpan-code/stream-labs/desktop/test/regular/recording.ts | import { readdir } from 'fs-extra';
import { test, useWebdriver } from '../helpers/webdriver';
import { sleep } from '../helpers/sleep';
import { startRecording, stopRecording } from '../helpers/modules/streaming';
import { FormMonkey } from '../helpers/form-monkey';
import {
setOutputResolution,
setTemporaryRecord... | 9,324 |
0 | petrpan-code/stream-labs/desktop/test | petrpan-code/stream-labs/desktop/test/regular/replay-buffer.ts | import { readdir } from 'fs-extra';
import { test, useWebdriver } from '../helpers/webdriver';
import { sleep } from '../helpers/sleep';
import {
setOutputResolution,
setTemporaryRecordingPath,
showSettingsWindow,
} from '../helpers/modules/settings/settings';
import { click, isDisplayed } from '../helpers/module... | 9,325 |
0 | petrpan-code/stream-labs/desktop/test | petrpan-code/stream-labs/desktop/test/regular/scenes.ts | import { useWebdriver, test } from '../helpers/webdriver';
import { addSource, sourceIsExisting } from '../helpers/modules/sources';
import {
addScene,
clickRemoveScene,
selectScene,
openRenameWindow,
openDuplicateWindow,
} from '../helpers/modules/scenes';
import { getApiClient } from '../helpers/api-client'... | 9,326 |
0 | petrpan-code/stream-labs/desktop/test | petrpan-code/stream-labs/desktop/test/regular/selective-recording.ts | import { readdir } from 'fs-extra';
import { test, useWebdriver } from '../helpers/webdriver';
import { addSource } from '../helpers/modules/sources';
import {
setOutputResolution,
setTemporaryRecordingPath,
} from '../helpers/modules/settings/settings';
import { focusMain } from '../helpers/modules/core';
useWebd... | 9,327 |
0 | petrpan-code/stream-labs/desktop/test | petrpan-code/stream-labs/desktop/test/regular/sources.ts | import { FormMonkey } from '../helpers/form-monkey';
import { useWebdriver, test } from '../helpers/webdriver';
import {
addSource,
clickRemoveSource,
clickSourceProperties,
selectSource,
openRenameWindow,
waitForSourceExist,
} from '../helpers/modules/sources';
import {
click,
clickButton,
focusChild... | 9,328 |
0 | petrpan-code/stream-labs/desktop/test | petrpan-code/stream-labs/desktop/test/regular/startup.ts | import { useWebdriver, test } from '../helpers/webdriver';
import { logIn } from '../helpers/webdriver/user';
import { sleep } from '../helpers/sleep';
import {
focusChild,
focusMain,
getClient,
waitForDisplayed,
waitForLoader,
} from '../helpers/modules/core';
useWebdriver();
// TODO: Enable this test
test... | 9,329 |
0 | petrpan-code/stream-labs/desktop/test | petrpan-code/stream-labs/desktop/test/regular/streamdeck.ts | import { test, TExecutionContext, useWebdriver } from '../helpers/webdriver';
import { ApiClient, getApiClient } from '../helpers/api-client';
import { IJsonRpcResponse } from '../../app/services/api/jsonrpc';
import { cloneDeep } from 'lodash';
useWebdriver();
// Test all API requests that streamdeck device does rig... | 9,330 |
0 | petrpan-code/stream-labs/desktop/test | petrpan-code/stream-labs/desktop/test/regular/themes.ts | import { test, TExecutionContext, useWebdriver } from '../helpers/webdriver';
import { logIn } from '../helpers/webdriver/user';
import { sleep } from '../helpers/sleep';
import { FormMonkey } from '../helpers/form-monkey';
import { sceneExisting } from '../helpers/modules/scenes';
import {
click,
focusMain,
focu... | 9,331 |
0 | petrpan-code/stream-labs/desktop/test | petrpan-code/stream-labs/desktop/test/regular/transitions.ts | import { useWebdriver, test } from '../helpers/webdriver';
import { clickSceneTransitions, addScene } from '../helpers/modules/scenes';
import { getFormInput } from '../helpers/webdriver/forms';
import { dismissModal } from '../helpers/webdriver/modals';
import { FormMonkey } from '../helpers/form-monkey';
import { cli... | 9,332 |
0 | petrpan-code/stream-labs/desktop/test | petrpan-code/stream-labs/desktop/test/regular/undo.ts | import { useWebdriver, test, TExecutionContext } from '../helpers/webdriver';
import { addSource, sourceIsExisting } from '../helpers/modules/sources';
import { SceneBuilder } from '../helpers/scene-builder';
import {
addScene,
clickRemoveScene,
selectScene,
duplicateScene,
sceneExisting,
} from '../helpers/m... | 9,333 |
0 | petrpan-code/stream-labs/desktop/test/regular | petrpan-code/stream-labs/desktop/test/regular/api/audio.ts | import { useWebdriver, test } from '../../helpers/webdriver';
import { getApiClient } from '../../helpers/api-client';
import { IAudioServiceApi } from 'services/audio';
import { ISceneCollectionsServiceApi } from 'services/scene-collections';
import { ScenesService } from '../../../app/services/api/external-api/scenes... | 9,334 |
0 | petrpan-code/stream-labs/desktop/test/regular | petrpan-code/stream-labs/desktop/test/regular/api/clipboard.ts | import { useWebdriver, test, afterAppStart } from '../../helpers/webdriver';
import { getApiClient } from '../../helpers/api-client';
import { SceneBuilder } from '../../helpers/scene-builder';
import { SelectionService } from 'services/api/external-api/selection';
import { ClipboardService } from 'services/clipboard';... | 9,335 |
0 | petrpan-code/stream-labs/desktop/test/regular | petrpan-code/stream-labs/desktop/test/regular/api/dual-output.ts | import { DualOutputService } from 'services/dual-output';
import { getApiClient } from '../../helpers/api-client';
import { test, useWebdriver, TExecutionContext } from '../../helpers/webdriver';
import { AutoConfigService } from 'services/auto-config';
import { ScenesService } from 'services/scenes';
import { VideoSet... | 9,336 |
0 | petrpan-code/stream-labs/desktop/test/regular | petrpan-code/stream-labs/desktop/test/regular/api/folders.ts | import { useWebdriver, test, afterAppStart } from '../../helpers/webdriver';
import { getApiClient } from '../../helpers/api-client';
import { SceneBuilder } from '../../helpers/scene-builder';
import { Scene, SceneNode } from 'services/api/external-api/scenes';
useWebdriver({ restartAppAfterEachTest: false });
let s... | 9,337 |
0 | petrpan-code/stream-labs/desktop/test/regular | petrpan-code/stream-labs/desktop/test/regular/api/scene-collections.ts | import { useWebdriver, test } from '../../helpers/webdriver';
import { getApiClient } from '../../helpers/api-client';
import { SceneCollectionsService } from 'services/scene-collections';
useWebdriver({ restartAppAfterEachTest: false });
test('SceneCollection events', async t => {
const client = await getApiClient... | 9,338 |
0 | petrpan-code/stream-labs/desktop/test/regular | petrpan-code/stream-labs/desktop/test/regular/api/scenes.ts | import { useWebdriver, test } from '../../helpers/webdriver';
import { getApiClient } from '../../helpers/api-client';
import { SceneBuilder } from '../../helpers/scene-builder';
import { sleep } from '../../helpers/sleep';
import { ScenesService } from '../../../app/services/api/external-api/scenes';
const path = req... | 9,339 |
0 | petrpan-code/stream-labs/desktop/test/regular | petrpan-code/stream-labs/desktop/test/regular/api/selection.ts | import { useWebdriver, test, afterAppStart } from '../../helpers/webdriver';
import { getApiClient } from '../../helpers/api-client';
import { SceneBuilder } from '../../helpers/scene-builder';
import { sleep } from '../../helpers/sleep';
import { SelectionService } from '../../../app/services/api/external-api/selecti... | 9,340 |
0 | petrpan-code/stream-labs/desktop/test/regular | petrpan-code/stream-labs/desktop/test/regular/api/sources.ts | import { useWebdriver, test } from '../../helpers/webdriver';
import { getApiClient } from '../../helpers/api-client';
import { ScenesService } from 'services/api/external-api/scenes/scenes';
import { SourcesService } from 'services/api/external-api/sources/sources';
import { sleep } from '../../helpers/sleep';
useWeb... | 9,341 |
0 | petrpan-code/stream-labs/desktop/test/regular | petrpan-code/stream-labs/desktop/test/regular/api/streaming.ts | import { TExecutionContext, useWebdriver, test } from '../../helpers/webdriver';
import { getApiClient } from '../../helpers/api-client';
import {
IStreamingServiceApi,
EStreamingState,
ERecordingState,
EReplayBufferState,
} from '../../../app/services/streaming/streaming-api';
import { SettingsService } from '... | 9,342 |
0 | petrpan-code/stream-labs/desktop/test/regular | petrpan-code/stream-labs/desktop/test/regular/api/transitions.ts | import { useWebdriver, test } from '../../helpers/webdriver';
import { getApiClient } from '../../helpers/api-client';
import { TransitionsService } from 'services/api/external-api/transitions';
useWebdriver({ restartAppAfterEachTest: false });
test('Transitions', async t => {
const api = await getApiClient();
co... | 9,343 |
0 | petrpan-code/stream-labs/desktop/test/regular/services | petrpan-code/stream-labs/desktop/test/regular/services/scene-collections/cloud-backup.ts | import { startApp, stopApp, test, useWebdriver } from '../../../helpers/webdriver';
import { SceneBuilder } from '../../../helpers/scene-builder';
import { getApiClient } from '../../../helpers/api-client';
import { logIn, loginWithAuthInfo } from '../../../helpers/webdriver/user';
import { SceneCollectionsService } fr... | 9,344 |
0 | petrpan-code/stream-labs/desktop/test/regular/services | petrpan-code/stream-labs/desktop/test/regular/services/scene-collections/migrations.ts | import { test, useWebdriver } from '../../../helpers/webdriver';
import { sceneExisting } from '../../../helpers/modules/scenes';
const fs = require('fs');
const path = require('path');
function copyFile(src: string, dest: string) {
return new Promise<void>((resolve, reject) => {
const read = fs.createReadStrea... | 9,345 |
0 | petrpan-code/stream-labs/desktop/test/regular | petrpan-code/stream-labs/desktop/test/regular/settings/advanced-audio.ts | import { test, TExecutionContext, useWebdriver } from '../../helpers/webdriver';
import { ISceneCollectionsServiceApi } from '../../../app/services/scene-collections';
import { getApiClient } from '../../helpers/api-client';
import { click, closeWindow, focusChild, focusMain } from '../../helpers/modules/core';
import ... | 9,346 |
0 | petrpan-code/stream-labs/desktop/test/regular | petrpan-code/stream-labs/desktop/test/regular/settings/advanced.ts | import { test, useWebdriver } from '../../helpers/webdriver';
import { showSettingsWindow } from '../../helpers/modules/settings/settings';
import { assertFormContains } from '../../helpers/modules/forms';
useWebdriver();
test('Populates advanced settings', async t => {
await showSettingsWindow('Advanced');
awai... | 9,347 |
0 | petrpan-code/stream-labs/desktop/test/regular | petrpan-code/stream-labs/desktop/test/regular/settings/audio.ts | import { test, useWebdriver } from '../../helpers/webdriver';
import { assertOptions } from '../../helpers/webdriver/assertions';
import { showSettingsWindow } from '../../helpers/modules/settings/settings';
import { focusMain } from '../../helpers/modules/core';
import { assertFormContains } from '../../helpers/module... | 9,348 |
0 | petrpan-code/stream-labs/desktop/test/regular | petrpan-code/stream-labs/desktop/test/regular/settings/hotkeys.ts | import { restartApp, test, TExecutionContext, useWebdriver } from '../../helpers/webdriver';
import { focusChild, focusMain } from '../../helpers/modules/core';
useWebdriver();
test('Populates essential hotkeys for them to be bound', async t => {
const { app } = t.context;
await focusMain();
await (await app.c... | 9,349 |
0 | petrpan-code/stream-labs/desktop/test/regular | petrpan-code/stream-labs/desktop/test/regular/settings/output.ts | import { test, useWebdriver } from '../../helpers/webdriver';
import { setFormDropdown } from '../../helpers/webdriver/forms';
import { focusChild, focusMain } from '../../helpers/modules/core';
useWebdriver();
test('Populates simple output mode settings', async t => {
const { app } = t.context;
await focusMain(... | 9,350 |
0 | petrpan-code/stream-labs/desktop/test/regular | petrpan-code/stream-labs/desktop/test/regular/settings/streaming.ts | import { test, useWebdriver } from '../../helpers/webdriver';
import { logIn } from '../../helpers/webdriver/user';
import { getFormInput } from '../../helpers/webdriver/forms';
import { goLive, stopStream } from '../../helpers/modules/streaming';
import { FormMonkey } from '../../helpers/form-monkey';
import { showSet... | 9,351 |
0 | petrpan-code/stream-labs/desktop/test/regular | petrpan-code/stream-labs/desktop/test/regular/settings/video.ts | import { test, useWebdriver } from '../../helpers/webdriver';
import { useForm } from '../../helpers/modules/forms/form';
import { showSettingsWindow } from '../../helpers/modules/settings/settings';
import { sleep } from '../../helpers/sleep';
useWebdriver();
test('Populates video settings', async t => {
await sho... | 9,352 |
0 | petrpan-code/stream-labs/desktop/test/regular | petrpan-code/stream-labs/desktop/test/regular/shared-components/components.ts | import { test, useWebdriver } from '../../helpers/webdriver';
import { showSettingsWindow } from '../../helpers/modules/settings/settings';
import { clickButton, clickTab, focusChild } from '../../helpers/modules/core';
import { useForm } from '../../helpers/modules/forms';
useWebdriver();
/**
* Test shared input com... | 9,353 |
0 | petrpan-code/stream-labs/desktop/test/regular | petrpan-code/stream-labs/desktop/test/regular/streaming/dual-output.ts | import {
clickGoLive,
prepareToGoLive,
waitForSettingsWindowLoaded,
} from '../../helpers/modules/streaming';
import {
click,
clickIfDisplayed,
focusChild,
focusMain,
hoverElement,
isDisplayed,
selectElements,
useMainWindow,
waitForText,
} from '../../helpers/modules/core';
import { logIn } from... | 9,354 |
0 | petrpan-code/stream-labs/desktop/test/regular | petrpan-code/stream-labs/desktop/test/regular/streaming/facebook.ts | import { logIn } from '../../helpers/modules/user';
import {
chatIsVisible,
goLive,
scheduleStream,
stopStream,
submit,
waitForStreamStart,
} from '../../helpers/modules/streaming';
import { test, useWebdriver } from '../../helpers/webdriver';
import * as moment from 'moment';
import { selectFirst, selectMa... | 9,355 |
0 | petrpan-code/stream-labs/desktop/test/regular | petrpan-code/stream-labs/desktop/test/regular/streaming/multistream.ts | import {
clickGoLive,
prepareToGoLive,
stopStream,
submit,
switchAdvancedMode,
waitForSettingsWindowLoaded,
} from '../../helpers/modules/streaming';
import { fillForm, useForm } from '../../helpers/modules/forms';
import { click, clickButton, isDisplayed, waitForDisplayed } from '../../helpers/modules/core... | 9,356 |
0 | petrpan-code/stream-labs/desktop/test/regular | petrpan-code/stream-labs/desktop/test/regular/streaming/trovo.ts | import { test, useWebdriver } from '../../helpers/webdriver';
import { logIn } from '../../helpers/modules/user';
import { chatIsVisible, goLive, stopStream } from '../../helpers/modules/streaming';
useWebdriver();
// TODO add testing accounts for Trovo
test.skip('Streaming to Trovo', async t => {
await logIn('trov... | 9,357 |
0 | petrpan-code/stream-labs/desktop/test/regular | petrpan-code/stream-labs/desktop/test/regular/streaming/twitch.ts | import {
chatIsVisible,
clickGoLive,
goLive,
prepareToGoLive,
stopStream,
submit,
tryToGoLive,
waitForSettingsWindowLoaded,
waitForStreamStart,
waitForStreamStop,
} from '../../helpers/modules/streaming';
import { showSettingsWindow } from '../../helpers/modules/settings/settings';
import { clickBut... | 9,358 |
0 | petrpan-code/stream-labs/desktop/test/regular | petrpan-code/stream-labs/desktop/test/regular/streaming/youtube.ts | import { logIn } from '../../helpers/modules/user';
import { skipCheckingErrorsInLog, test, useWebdriver } from '../../helpers/webdriver';
import {
chatIsVisible,
clickGoLive,
goLive,
prepareToGoLive,
scheduleStream,
stopStream,
submit,
waitForStreamStart,
} from '../../helpers/modules/streaming';
impo... | 9,359 |
0 | petrpan-code/stream-labs/desktop/test/regular | petrpan-code/stream-labs/desktop/test/regular/widgets/alertbox.ts | import { test, TExecutionContext, useWebdriver } from '../../helpers/webdriver';
import { addSource, openSourceProperties } from '../../helpers/modules/sources';
import { logIn } from '../../helpers/modules/user';
import {
click,
clickButton,
focusChild,
focusMain,
waitForDisplayed,
} from '../../helpers/modu... | 9,360 |
0 | petrpan-code/stream-labs/desktop/test/regular | petrpan-code/stream-labs/desktop/test/regular/widgets/chat-box.ts | import { test, useWebdriver } from '../../helpers/webdriver';
import { addSource, openSourceProperties } from '../../helpers/modules/sources';
import { logIn } from '../../helpers/webdriver/user';
import { assertFormContains, fillForm } from '../../helpers/modules/forms';
import { waitForWidgetSettingsSync } from '../.... | 9,361 |
0 | petrpan-code/stream-labs/desktop/test/regular | petrpan-code/stream-labs/desktop/test/regular/widgets/goals.ts | import { test, useWebdriver } from '../../helpers/webdriver';
import { addSource } from '../../helpers/modules/sources';
import { logIn } from '../../helpers/webdriver/user';
import { FormMonkey } from '../../helpers/form-monkey';
import { waitForWidgetSettingsSync } from '../../helpers/widget-helpers';
useWebdriver()... | 9,362 |
0 | petrpan-code/stream-labs/desktop/test/regular | petrpan-code/stream-labs/desktop/test/regular/widgets/stream-boss.ts | import { test, useWebdriver } from '../../helpers/webdriver';
import { addSource } from '../../helpers/modules/sources';
import { logIn } from '../../helpers/webdriver/user';
import { FormMonkey } from '../../helpers/form-monkey';
import { waitForWidgetSettingsSync } from '../../helpers/widget-helpers';
useWebdriver()... | 9,363 |
0 | petrpan-code/stream-labs/desktop/test/regular | petrpan-code/stream-labs/desktop/test/regular/widgets/tip-jar.ts | import { test, useWebdriver } from '../../helpers/webdriver';
import { addSource } from '../../helpers/modules/sources';
import { logIn } from '../../helpers/webdriver/user';
useWebdriver();
test('Set tip-jar settings', async t => {
if (!(await logIn(t))) return;
const client = t.context.app.client;
await addS... | 9,364 |
0 | petrpan-code/stream-labs/desktop/test | petrpan-code/stream-labs/desktop/test/screentest/comparator.ts | /**
* Compare screenshots and create diffs
*/
const fs = require('fs');
const PNG = require('pngjs').PNG;
const pixelmatch = require('pixelmatch');
import { getConfigsVariations, getConfig } from './utils';
const CONFIG = getConfig();
const branches = process.argv.slice(2, 4);
const [newBranchName, baseBranchName] =... | 9,365 |
0 | petrpan-code/stream-labs/desktop/test | petrpan-code/stream-labs/desktop/test/screentest/config.json | {
"dist": "test-dist/screentest",
"compiledTestsDist": "test-dist/test",
"threshold": 0.15,
"configs": {
"resolution": {
"window": "main",
"options": [{ "width": 1000, "height": 700 }, { "width": 1500, "height": 900 }]
},
"nightMode": {
"options": [true, false]
}
}
}
| 9,366 |
0 | petrpan-code/stream-labs/desktop/test | petrpan-code/stream-labs/desktop/test/screentest/preview-tpl.html | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Regression preview</title>
<script src="https://rawgit.com/vuejs/vue/dev/dist/vue.js" type="application/javascript"></script>
</head>
<body>
<div id="app">
<div class="filters">
<div v-for="(filter, paramName) of state.config.configs" c... | 9,367 |
0 | petrpan-code/stream-labs/desktop/test | petrpan-code/stream-labs/desktop/test/screentest/runner.js | require('dotenv').config();
const rimraf = require('rimraf');
const fs = require('fs');
const path = require('path');
const AWS = require('aws-sdk');
const uuid = require('uuid');
const recursiveReadDir = require('recursive-readdir');
const { GithubClient } = require('../../scripts/github-client');
const { exec, checko... | 9,368 |
0 | petrpan-code/stream-labs/desktop/test | petrpan-code/stream-labs/desktop/test/screentest/screenshoter.ts | import { getApiClient } from '../helpers/api-client';
import { CustomizationService } from '../../app/services/customization';
import { getConfigsVariations, getConfig } from './utils';
import test from 'ava';
import { sleep } from '../helpers/sleep';
import { afterAppStart, TExecutionContext } from '../helpers/webdriv... | 9,369 |
0 | petrpan-code/stream-labs/desktop/test | petrpan-code/stream-labs/desktop/test/screentest/utils.ts | const fs = require('fs');
const CONFIG = JSON.parse(fs.readFileSync('test/screentest/config.json'));
const CONFIG_VARIATION = CONFIG.configs;
export function getConfig() {
return JSON.parse(fs.readFileSync('test/screentest/config.json'));
}
/**
* get set of unique configs
*/
export function getConfigsVariations()... | 9,370 |
0 | petrpan-code/stream-labs/desktop/test/screentest | petrpan-code/stream-labs/desktop/test/screentest/tests/editor.ts | import { useWebdriver, test } from '../../helpers/webdriver';
import { getApiClient } from '../../helpers/api-client';
import { ISourcesServiceApi } from '../../../app/services/sources/sources-api';
import { useScreentest } from '../screenshoter';
import { ScenesService } from '../../../app/services/api/external-api/sc... | 9,371 |
0 | petrpan-code/stream-labs/desktop/test/screentest | petrpan-code/stream-labs/desktop/test/screentest/tests/onboarding.ts | import { useWebdriver, test } from '../../helpers/webdriver';
import { disableGifAnimations, makeScreenshots, useScreentest } from '../screenshoter';
import { logIn } from '../../helpers/webdriver/user';
import { spawnSync } from 'child_process';
import { sleep } from '../../helpers/sleep';
import { focusMain } from '.... | 9,372 |
0 | petrpan-code/stream-labs/desktop/test/screentest | petrpan-code/stream-labs/desktop/test/screentest/tests/settings.ts | import { useWebdriver, test, TExecutionContext } from '../../helpers/webdriver';
import { getApiClient } from '../../helpers/api-client';
import { makeScreenshots, useScreentest } from '../screenshoter';
import { SettingsService } from '../../../app/services/settings';
import { logIn, logOut } from '../../helpers/webdr... | 9,373 |
0 | petrpan-code/stream-labs/desktop/test/screentest | petrpan-code/stream-labs/desktop/test/screentest/tests/source-props.ts | import { useWebdriver, test, afterAppStart } from '../../helpers/webdriver';
import { getApiClient } from '../../helpers/api-client';
import { ISourcesServiceApi, TSourceType } from '../../../app/services/sources/sources-api';
import { useScreentest } from '../screenshoter';
import { sleep } from '../../helpers/sleep';... | 9,374 |
0 | petrpan-code/stream-labs/desktop/test/screentest | petrpan-code/stream-labs/desktop/test/screentest/tests/sources.ts | import { useWebdriver, test } from '../../helpers/webdriver';
import { getApiClient } from '../../helpers/api-client';
import { ISourcesServiceApi } from '../../../app/services/sources/sources-api';
import { useScreentest } from '../screenshoter';
import { ScenesService } from 'services/api/external-api/scenes';
import... | 9,375 |
0 | petrpan-code/stream-labs/desktop/test/screentest | petrpan-code/stream-labs/desktop/test/screentest/tests/streaming.ts | import { skipCheckingErrorsInLog, test, useWebdriver } from '../../helpers/webdriver';
import { logIn } from '../../helpers/webdriver/user';
import { fillForm, selectTitle } from '../../helpers/form-monkey';
import { makeScreenshots, useScreentest } from '../screenshoter';
import { TPlatform } from '../../../app/servic... | 9,376 |
0 | petrpan-code/stream-labs/desktop/test/screentest | petrpan-code/stream-labs/desktop/test/screentest/tests/transitions.ts | import { useWebdriver, test, TExecutionContext } from '../../helpers/webdriver';
import { getApiClient } from '../../helpers/api-client';
import { makeScreenshots, useScreentest } from '../screenshoter';
import { ScenesService } from 'services/api/external-api/scenes';
import { TransitionsService } from 'services/trans... | 9,377 |
0 | petrpan-code/stream-labs/desktop/test/screentest/tests | petrpan-code/stream-labs/desktop/test/screentest/tests/widgets/chat-box.ts | import { afterAppStart, test, useWebdriver } from '../../../helpers/webdriver';
import { logIn } from '../../../helpers/webdriver/user';
import { fillForm } from '../../../helpers/form-monkey';
import { addWidget, EWidgetType, waitForWidgetSettingsSync } from '../../../helpers/widget-helpers';
import { useScreentest } ... | 9,378 |
0 | petrpan-code/stream-labs/desktop/test/screentest/tests | petrpan-code/stream-labs/desktop/test/screentest/tests/widgets/goals.ts | import { TExecutionContext, test, useWebdriver } from '../../../helpers/webdriver/index';
import { logIn, logOut } from '../../../helpers/webdriver/user';
import { makeScreenshots, useScreentest } from '../../screenshoter';
import { FormMonkey } from '../../../helpers/form-monkey';
import { addWidget, EWidgetType, wait... | 9,379 |
0 | petrpan-code/stream-labs/desktop/test | petrpan-code/stream-labs/desktop/test/stress/index.ts | // The stress test will not be run when normally running tests.
import { uniqueId, sample } from 'lodash';
import { useWebdriver, TExecutionContext, test } from '../helpers/webdriver/index';
import { addScene, clickRemoveScene } from '../helpers/modules/scenes';
import { addSource, clickRemoveSource, rightClickSource ... | 9,380 |
0 | petrpan-code/stream-labs/desktop | petrpan-code/stream-labs/desktop/updater/UpdaterWindow.vue | <template>
<div class="UpdaterWindow">
<div>
<i class="UpdaterWindow-icon fas fa-sync-alt fa-spin"/>
{{ message }}
</div>
<div class="UpdaterWindow-subMessage">
{{ subMessage }}
</div>
</div>
</template>
<script>
const { remote, ipcRenderer } = window.require('electron');
export default {
data()... | 9,381 |
0 | petrpan-code/stream-labs/desktop | petrpan-code/stream-labs/desktop/updater/bootstrap.ts | /**
* Updater bootstrap:
* Determines if the user should receive an update, and if so,
* spawns the updater and shuts down the application. In most
* error situations, the application will start up normally.
*/
import * as util from 'util';
import * as path from 'path';
import * as tasklist from 'tasklist';
impor... | 9,382 |
0 | petrpan-code/stream-labs/desktop | petrpan-code/stream-labs/desktop/updater/bundle-updater.ts | import fetch from 'node-fetch';
import * as electron from 'electron';
import * as path from 'path';
import * as fs from 'fs-extra';
import * as stream from 'stream';
import * as http from 'http';
import * as crypto from 'crypto';
import AbortController from 'abort-controller';
type TBundleName = 'renderer.js' | 'vendo... | 9,383 |
0 | petrpan-code/stream-labs/desktop | petrpan-code/stream-labs/desktop/updater/index.html | <!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="../vendor/foundation.min.css" />
<link href="../vendor/roboto.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="../vendor/fontawesome-free-5.13.0-web/css/all.css" />
<script src="../bundles/updater.js"></scrip... | 9,384 |
0 | petrpan-code/stream-labs/desktop | petrpan-code/stream-labs/desktop/updater/tsconfig.json | {
"compilerOptions": {
"target": "es5",
"module": "commonjs",
"strict": true,
"outDir": "./build"
},
"files": [
"bootstrap.ts",
"bundle-updater.ts",
"updater.d.ts"
]
}
| 9,385 |
0 | petrpan-code/stream-labs/desktop | petrpan-code/stream-labs/desktop/updater/ui.js | // This is the entry point into the updater app
import Vue from 'vue';
import UpdaterWindow from './UpdaterWindow.vue';
document.addEventListener('DOMContentLoaded', () => {
new Vue({
el: '#app',
render: createEl => {
return createEl(UpdaterWindow);
}
});
});
| 9,386 |
0 | petrpan-code/stream-labs/desktop | petrpan-code/stream-labs/desktop/updater/updater.d.ts | declare module 'tasklist';
declare module 'serve-handler';
| 9,387 |
0 | petrpan-code/stream-labs/desktop/updater | petrpan-code/stream-labs/desktop/updater/mac/Updater.js | // This is the entry point to the auto-updater, and should
// be required by the main electron process.
const { autoUpdater } = require('electron-updater');
const { app, BrowserWindow, ipcMain, dialog } = require('electron');
class Updater {
// startApp is a callback that will start the app. Ideally this
// woul... | 9,388 |
0 | petrpan-code/stream-labs/desktop/updater | petrpan-code/stream-labs/desktop/updater/mac/UpdaterWindow.vue | <template>
<div class="UpdaterWindow">
<div>
<i class="UpdaterWindow-icon fas fa-sync-alt fa-spin" />
{{ message }}
</div>
<div v-if="percentComplete !== null && !installing && !error">
<div class="UpdaterWindow-progressPercent">{{ percentComplete }}% complete</div>
<div class="Up... | 9,389 |
0 | petrpan-code/stream-labs/desktop/updater | petrpan-code/stream-labs/desktop/updater/mac/index.html | <!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="../../vendor/foundation.min.css" />
<link href="../../vendor/roboto.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="../../vendor/fontawesome-free-5.15.3-web/css/all.css" />
<script src="../../bundles/updat... | 9,390 |
0 | petrpan-code/stream-labs/desktop/updater | petrpan-code/stream-labs/desktop/updater/mac/ui.js | // This is the entry point into the updater app
import Vue from 'vue';
import UpdaterWindow from './UpdaterWindow.vue';
document.addEventListener('DOMContentLoaded', () => {
new Vue({
el: '#app',
render: createEl => {
return createEl(UpdaterWindow);
},
});
});
| 9,391 |
0 | petrpan-code/stream-labs/desktop | petrpan-code/stream-labs/desktop/vendor/flexboxgrid.min.css | .container-fluid{margin-right:auto;margin-left:auto;padding-right:2rem;padding-left:2rem}.row{box-sizing:border-box;display:-ms-flexbox;display:-webkit-box;display:flex;-ms-flex:0 1 auto;-webkit-box-flex:0;flex:0 1 auto;-ms-flex-direction:row;-webkit-box-orient:horizontal;-webkit-box-direction:normal;flex-direction:row... | 9,392 |
0 | petrpan-code/stream-labs/desktop | petrpan-code/stream-labs/desktop/vendor/roboto.css | /* cyrillic-ext */
@font-face {
font-family: 'Roboto';
font-style: normal;
font-weight: 300;
src: local('Roboto Light'), local('Roboto-Light'), url(https://fonts.gstatic.com/s/roboto/v15/0eC6fl06luXEYWpBSJvXCIX0hVgzZQUfRDuZrPvH3D8.woff2) format('woff2');
unicode-range: U+0460-052F, U+20B4, U+2DE0-2DFF, U+A640... | 9,393 |
0 | petrpan-code/stream-labs/desktop | petrpan-code/stream-labs/desktop/vendor/toasted.d.ts | import './vue';
import { Vue, VueConstructor } from 'vue/types/vue';
interface ToastObject {
// html element of the toast
el: HTMLElement;
// change text or html of the toast
text: (text: string) => any;
// fadeAway the toast. default delay will be 800ms
goAway: (delay?: number) => any;
}
type ToastPositi... | 9,394 |
0 | petrpan-code/stream-labs/desktop | petrpan-code/stream-labs/desktop/vendor/urijs.d.ts | // Type definitions for URI.js 1.15.1
// jQuery dependency that presents in original d.ts is excluded in this file
declare namespace uri {
interface URI {
absoluteTo(path: string): URI;
absoluteTo(path: URI): URI;
addFragment(fragment: string): URI;
addQuery(qry: string): URI;
addQuery(qry: strin... | 9,395 |
0 | petrpan-code/stream-labs/desktop/vendor | petrpan-code/stream-labs/desktop/vendor/fontawesome-free-5.15.3-web/LICENSE.txt | Font Awesome Free License
-------------------------
Font Awesome Free is free, open source, and GPL friendly. You can use it for
commercial projects, open source projects, or really almost whatever you want.
Full Font Awesome Free license: https://fontawesome.com/license/free.
# Icons: CC BY 4.0 License (https://crea... | 9,396 |
0 | petrpan-code/stream-labs/desktop/vendor | petrpan-code/stream-labs/desktop/vendor/fontawesome-free-5.15.3-web/attribution.js | console.log(`Font Awesome Free 5.15.3 by @fontawesome - https://fontawesome.com
License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
`) | 9,397 |
0 | petrpan-code/stream-labs/desktop/vendor/fontawesome-free-5.15.3-web | petrpan-code/stream-labs/desktop/vendor/fontawesome-free-5.15.3-web/css/all.css | /*!
* Font Awesome Free 5.15.3 by @fontawesome - https://fontawesome.com
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
*/
.fa,
.fas,
.far,
.fal,
.fad,
.fab {
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
display: inline-blo... | 9,398 |
0 | petrpan-code/stream-labs/desktop/vendor/fontawesome-free-5.15.3-web | petrpan-code/stream-labs/desktop/vendor/fontawesome-free-5.15.3-web/css/all.min.css | /*!
* Font Awesome Free 5.15.3 by @fontawesome - https://fontawesome.com
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
*/
.fa,.fab,.fad,.fal,.far,.fas{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:inline-block;font-style:norm... | 9,399 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.