gray-dawn-16972
01/16/2023, 5:08 PMgray-kilobyte-89541
01/16/2023, 5:08 PMgray-dawn-16972
01/16/2023, 5:09 PMgray-kilobyte-89541
01/16/2023, 8:41 PMgray-kilobyte-89541
01/16/2023, 10:32 PMcy.intercept
command https://cypress.tips/courses/network-testing/lessons/bonus70curved-dress-90603
01/16/2023, 11:13 PMmagnificent-lamp-44201
01/17/2023, 4:51 AMcypress.env.json
I set the baseUrl
variable, with the URL that I want to use, and I call it in a beforeEach
by doing cy.visit(Cypress.env('baseUrl')
. Unfortunately is throwing me an error. The URL exists (it's an URL I created for a mock server). If I attempt to visit https://3dd78cb3-70ab-4481-9209-4372df167733.mock.pstmn.io/users
is going to show me a response. If I set the URL in the cypress.config.ts
file, it works (but I don't want to set the URL in there). How can I fix this issue?
I attached other images of how I set the env variable, and how I use it.careful-tent-30457
01/17/2023, 5:21 AMmodern-dawn-86006
01/17/2023, 6:09 AMhelpful-truck-53930
01/17/2023, 9:43 AMrapid-agency-4212
01/17/2023, 10:04 AMcolossal-table-38461
01/17/2023, 10:48 AMalert-action-80742
01/17/2023, 11:14 AMthousands-house-85089
01/17/2023, 12:14 PMthousands-house-85089
01/17/2023, 12:16 PMcy.get('element', {includeShadowDom: true})
gray-kilobyte-89541
01/17/2023, 12:31 PMcareful-tent-30457
01/17/2023, 12:35 PMgray-kilobyte-89541
01/17/2023, 12:36 PMcareful-tent-30457
01/17/2023, 12:37 PMgray-kilobyte-89541
01/17/2023, 12:38 PMelegant-noon-34773
01/17/2023, 1:12 PMmagnificent-rose-9821
01/17/2023, 1:17 PMgray-kilobyte-89541
01/17/2023, 1:23 PMelegant-noon-34773
01/17/2023, 1:24 PMgray-kilobyte-89541
01/17/2023, 1:28 PMgray-kilobyte-89541
01/17/2023, 1:28 PMelegant-noon-34773
01/17/2023, 1:29 PMmagnificent-rose-9821
01/17/2023, 1:37 PMmagnificent-lamp-44201
01/17/2023, 3:28 PMfaint-ocean-92094
01/17/2023, 3:31 PM