This commit is contained in:
Emily Rohrbough
2022-08-16 13:20:24 -05:00
parent ba56dde832
commit 3727df85a2
5 changed files with 4 additions and 8 deletions

View File

@@ -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,
}

View File

@@ -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({

View File

@@ -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,

View File

@@ -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,

View File

@@ -448,7 +448,7 @@ export class SocketBase {
case 'reset:session:state':
cookieJar.removeAllCookies()
session.clearAllSessions()
session.clearSpecSessions()
resetRenderedHTMLOrigins()
return