My application requires passing custom url to cy.visit for every page. For eg:
"env": {
"testenv" : "sbx",
"sbx":{
"my":"https://abcabcabx#/",
"foo": "https://defdefx#/"
}
In base class, its read as :
cy.visit(Cypress.env()[Cypress.env()['testenv']][brand]);
Our application is in lower env and there is no connectivity between pages so we test each page by hitting url for that page. Example : https://abcabcabx#/about-your-detail
for about your finance, url will be : https://abcabcabx#/about-your-finance
that is how i am calling url in test class :
For about your detail page - url will be :
let brands = ['my', 'foo']
aboutYourDetailPage.openUrl(brand)
How can i customise this url for each class.
Thanks in advance !!