From 5a2350130e8f0acb83886dd594f61866064d6bb4 Mon Sep 17 00:00:00 2001 From: Ryan Manuel Date: Fri, 17 May 2024 10:40:46 -0500 Subject: [PATCH] chore: turn off protocol element highlight selector tests (#29533) * blank * blank - run ci * chore: remove protocol highlight tests * blank - run ci --- packages/driver/cypress/e2e/cy/snapshot.cy.js | 106 ------------------ 1 file changed, 106 deletions(-) diff --git a/packages/driver/cypress/e2e/cy/snapshot.cy.js b/packages/driver/cypress/e2e/cy/snapshot.cy.js index 81bd45fd6dfc..429e1337e88c 100644 --- a/packages/driver/cypress/e2e/cy/snapshot.cy.js +++ b/packages/driver/cypress/e2e/cy/snapshot.cy.js @@ -175,112 +175,6 @@ describe('driver/src/cy/snapshots', () => { expect(body.get().find('iframe').css('height')).to.equal('70px') }) }) - - context('protocol', () => { - beforeEach(() => { - // set to 0 to ensure protocol snapshots are taken - // since the driver support file sets the value to 1 - Cypress.config('numTestsKeptInMemory', 0) - }) - - it('captures a protocol snapshot with highlight elements', { - protocolEnabled: true, - }, function () { - cy.window().then((win) => { - win.__cypressProtocolMetadata = { frameId: 'test-frame-id' } - - const { elementsToHighlight, name, timestamp } = cy.createSnapshot('snapshot', cy.$$('a')) - - expect(elementsToHighlight?.length).to.equal(3) - expect(elementsToHighlight?.[0].selector).to.equal('a:nth-child(2)') - expect(elementsToHighlight?.[0].frameId).to.equal('test-frame-id') - expect(elementsToHighlight?.[1].selector).to.equal('#hashchange') - expect(elementsToHighlight?.[1].frameId).to.equal('test-frame-id') - expect(elementsToHighlight?.[2].selector).to.equal('#dimensions') - expect(elementsToHighlight?.[2].frameId).to.equal('test-frame-id') - expect(name).to.equal('snapshot') - expect(timestamp).to.be.a('number') - }) - }) - - it('captures a protocol snapshot with an embedded iframe highlight element', { - protocolEnabled: true, - }, function () { - const iframe = $('