Skip to content

Commit

Permalink
logging for e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
ARADDCC002 committed Jan 10, 2025
1 parent 8f4d5e4 commit 1e7be5f
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions frontend/cypress/e2e/bailo/make-and-review-access-request.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(() => {
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 1e7be5f

Please sign in to comment.