Skip to content

Commit

Permalink
chore: remove various dead code (#30818)
Browse files Browse the repository at this point in the history
* chore: remove various dead code

* additional dead code

---------

Co-authored-by: Jennifer Shehane <[email protected]>
  • Loading branch information
ryanthemanuel and jennifer-shehane authored Jan 24, 2025
1 parent 96e05f1 commit dbd11d4
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 23 deletions.
4 changes: 0 additions & 4 deletions packages/app/src/runner/event-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
})
Expand Down
3 changes: 0 additions & 3 deletions packages/app/src/runner/iframe-model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand Down
12 changes: 0 additions & 12 deletions packages/app/src/runner/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,6 @@ function createIframeModel () {
autIframe.highlightEl,
autIframe.doesAUTMatchTopSuperDomainOrigin,
getEventManager(),
{
selectorPlaygroundModel: getEventManager().selectorPlaygroundModel,
},
)

iframeModel.listen()
Expand Down Expand Up @@ -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
Expand All @@ -198,7 +193,6 @@ export async function teardown () {
_eventManager?.teardown(getMobxRunnerStore())
await _eventManager?.resetReporter()
_eventManager = undefined
isTorndown = true
}

/**
Expand Down Expand Up @@ -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()

Expand Down
4 changes: 0 additions & 4 deletions packages/app/src/store/studio-store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`
},
Expand Down

3 comments on commit dbd11d4

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on dbd11d4 Jan 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Circle has built the linux x64 version of the Test Runner.

Learn more about this pre-release build at https://on.cypress.io/advanced-installation#Install-pre-release-version

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/14.0.1/linux-x64/develop-dbd11d436bc3c79771f0b8335a51a438fdb5b8f9/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on dbd11d4 Jan 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Circle has built the linux arm64 version of the Test Runner.

Learn more about this pre-release build at https://on.cypress.io/advanced-installation#Install-pre-release-version

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/14.0.1/linux-arm64/develop-dbd11d436bc3c79771f0b8335a51a438fdb5b8f9/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on dbd11d4 Jan 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Circle has built the darwin arm64 version of the Test Runner.

Learn more about this pre-release build at https://on.cypress.io/advanced-installation#Install-pre-release-version

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/14.0.1/darwin-arm64/develop-dbd11d436bc3c79771f0b8335a51a438fdb5b8f9/cypress.tgz

Please sign in to comment.