mirror of
https://github.com/cypress-io/cypress.git
synced 2026-03-09 10:09:52 -05:00
clean up
This commit is contained in:
2
.vscode/settings.json
vendored
2
.vscode/settings.json
vendored
@@ -38,7 +38,7 @@
|
||||
// Volar is the main extension that powers Vue's language features.
|
||||
// These are commented out because they slow down node development
|
||||
// "volar.autoCompleteRefs": false,
|
||||
"volar.takeOverMode.enabled": true,
|
||||
"volar.takeOverMode.enabled": "auto",
|
||||
|
||||
"editor.tabSize": 2,
|
||||
}
|
||||
|
||||
@@ -131,7 +131,7 @@ const setPostMessageLocalStorage = async (specWindow, originOptions) => {
|
||||
.timeout(2000)
|
||||
.finally(() => {
|
||||
specWindow.removeEventListener('message', onPostMessage)
|
||||
// $iframeContainer.remove()
|
||||
$iframeContainer.remove()
|
||||
})
|
||||
.catch(() => {
|
||||
Cypress.log({
|
||||
@@ -180,7 +180,7 @@ const getPostMessageLocalStorage = (specWindow, origins): Promise<any[]> => {
|
||||
.timeout(2000)
|
||||
.finally(() => {
|
||||
specWindow.removeEventListener('message', onPostMessage)
|
||||
// $iframeContainer.remove()
|
||||
$iframeContainer.remove()
|
||||
})
|
||||
.catch((err) => {
|
||||
Cypress.log({
|
||||
|
||||
@@ -641,7 +641,6 @@ export class $Cy extends EventEmitter2 implements ITimeouts, IStability, IAssert
|
||||
try {
|
||||
const s = this.state()
|
||||
|
||||
console.log('reset', test.title, s.activeSessions)
|
||||
const backup = {
|
||||
test,
|
||||
window: s.window,
|
||||
|
||||
@@ -184,9 +184,7 @@ export default class Attempt {
|
||||
_addSession (props: CommandProps) {
|
||||
const updated = this._updateSession(props)
|
||||
|
||||
console.log('updated?', props.id)
|
||||
if (!updated) {
|
||||
console.log('add new session', props)
|
||||
const session = new Session({
|
||||
state: props.state,
|
||||
testCurrentRetry: props.testCurrentRetry || 0,
|
||||
@@ -205,7 +203,6 @@ export default class Attempt {
|
||||
const session = this.sessions[props.id]
|
||||
|
||||
if (session) {
|
||||
console.log('update session')
|
||||
session.update({
|
||||
state: props.state,
|
||||
testCurrentRetry: props.testCurrentRetry || 0,
|
||||
|
||||
@@ -448,7 +448,7 @@ export class SocketBase {
|
||||
|
||||
case 'reset:session:state':
|
||||
cookieJar.removeAllCookies()
|
||||
session.clearAllSessions()
|
||||
session.clearSpecSessions()
|
||||
resetRenderedHTMLOrigins()
|
||||
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user