diff --git a/packages/app/src/runner/event-manager.ts b/packages/app/src/runner/event-manager.ts index ea8585fef3ad..147776ca0777 100644 --- a/packages/app/src/runner/event-manager.ts +++ b/packages/app/src/runner/event-manager.ts @@ -307,10 +307,6 @@ export class EventManager { this._studioCopyToClipboard(cb) }) - this.localBus.on('studio:start', () => { - rerun() - }) - this.localBus.on('studio:copy:to:clipboard', (cb) => { this._studioCopyToClipboard(cb) }) diff --git a/packages/app/src/runner/iframe-model.ts b/packages/app/src/runner/iframe-model.ts index d249ddd7d70e..2394c29eb264 100644 --- a/packages/app/src/runner/iframe-model.ts +++ b/packages/app/src/runner/iframe-model.ts @@ -37,9 +37,6 @@ export class IframeModel { private highlightEl: ({ body }: any, opts: any) => void, private isAUTSameOrigin: () => boolean, private eventManager: EventManager, - private studio: { - selectorPlaygroundModel: any - }, ) { this._reset() } diff --git a/packages/app/src/runner/index.ts b/packages/app/src/runner/index.ts index 7e360f1535be..89c8d8c589c1 100644 --- a/packages/app/src/runner/index.ts +++ b/packages/app/src/runner/index.ts @@ -100,9 +100,6 @@ function createIframeModel () { autIframe.highlightEl, autIframe.doesAUTMatchTopSuperDomainOrigin, getEventManager(), - { - selectorPlaygroundModel: getEventManager().selectorPlaygroundModel, - }, ) iframeModel.listen() @@ -185,8 +182,6 @@ function teardownSpec (isRerun: boolean = false) { return getEventManager().teardown(getMobxRunnerStore(), isRerun) } -let isTorndown = false - /** * Called when navigating away from the runner page. * This will teardown the reporter, event manager, and @@ -198,7 +193,6 @@ export async function teardown () { _eventManager?.teardown(getMobxRunnerStore()) await _eventManager?.resetReporter() _eventManager = undefined - isTorndown = true } /** @@ -353,14 +347,8 @@ async function runSpecE2E (config, spec: SpecFile) { async function initialize () { await dfd.promise - isTorndown = false - const config = getRunnerConfigFromWindow() - if (isTorndown) { - return - } - // Reset stores const autStore = useAutStore() diff --git a/packages/app/src/store/studio-store.ts b/packages/app/src/store/studio-store.ts index 3b924249d3ed..f5855e8014ed 100644 --- a/packages/app/src/store/studio-store.ts +++ b/packages/app/src/store/studio-store.ts @@ -896,10 +896,6 @@ export const useStudioStore = defineStore('studioRecorder', { return state.logs.length === 0 }, - isReady (state): boolean { - return this.isOpen && this.isEmpty && !state.isLoading && !state.isFailed - }, - hookId: (state) => { return `${state.testId}-studio` },