stale-optician-85950
09/28/2022, 9:26 AM** at the beginning, try this:
cy.intercept('GET', '**/api/v1/oktaConfig').as('exp')
and I don't know if you are chopping off the end URL path, if yes then try this:
cy.intercept('GET', '**/api/v1/oktaConfig/*').as('exp')
And as mentioned above this should be moved before the first cy.visit()
Cypress.Commands.add('login', (username, password) => {
cy.session([username, password], () => {
cy.intercept('GET', '**/api/v1/oktaConfig/*').as('exp')
cy.visit('/');
...