cypress Cypress.config.baseUrl is set correctly however getting error from cy.visit()

here is my test:

describe('settings page test', () =>{
    it('tests navigation to settings page from login', () =>{
        console.log(Cypress.config().baseUrl)
        cy.visit(Cypress.config().baseurl)

the console.log(Cypress.config().baseUrl) sure enough is containing the value my baseUrl is set as.

{
  "baseUrl": "https://superniftyurltho.com",
  "env": {

  }
}

and here is the error

    cy.visit() must be called with a url 
or an options object containing a url as its 1st argumentLearn more

anyone know what might be going on?



Read more here: https://stackoverflow.com/questions/67391413/cypress-cypress-config-baseurl-is-set-correctly-however-getting-error-from-cy-vi

Content Attribution

This content was originally published by 48326tho at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: