From 1e7be5f46c6c608464636605bc71fe4f287af523 Mon Sep 17 00:00:00 2001 From: araddcc002 Date: Fri, 10 Jan 2025 16:54:52 +0000 Subject: [PATCH] logging for e2e --- .../e2e/bailo/make-and-review-access-request.cy.ts | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/frontend/cypress/e2e/bailo/make-and-review-access-request.cy.ts b/frontend/cypress/e2e/bailo/make-and-review-access-request.cy.ts index cecf327c7..2e8cd1d76 100644 --- a/frontend/cypress/e2e/bailo/make-and-review-access-request.cy.ts +++ b/frontend/cypress/e2e/bailo/make-and-review-access-request.cy.ts @@ -3,11 +3,6 @@ let accessRequestUuid = '' const modelName = 'Test Model' const schemaId = 'minimal-access-request-general-v10' const accessRequestName = 'Test access request' -let spy - -Cypress.on('window:before:load', (win) => { - spy = cy.spy(win.console, 'error') // can be other methods - log, warn, etc -}) describe('Make and approve an access request', () => { before(() => { @@ -49,11 +44,7 @@ describe('Make and approve an access request', () => { }) cy.log('Creating the access request') - - cy.wrap({}).should(() => { - expect(spy).not.to.be.called - cy.get('body').contains('Select a different schema') - }) + cy.get('body').contains('Select a different schema') cy.get('[data-test=entitySelector]').contains('Joe Bloggs') cy.get('#root_name-label').contains('What is the name of the access request?') cy.get('#root_name').type(accessRequestName)