Skip to content

Commit

Permalink
debug: test with a hardcodedUrl
Browse files Browse the repository at this point in the history
  • Loading branch information
adeldhis2 committed Dec 6, 2024
1 parent 25677d0 commit 4987f37
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions cypress/helpers/startScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ const logPageState = () => {
}

export const goToStartPage = (skipEval) => {
const initialBaseURL = Cypress.env('dhis2BaseUrl')
cy.task('log', `** initialBaseURL URL: ${initialBaseURL}`)
const processedUrl = Cypress.env('dhis2BaseUrl').replace(/\/$/, '')
cy.task('log', `** Visiting URL: ${processedUrl}`)
// Hardcoded URL for testing
const hardcodedUrl =
'https://test.e2e.dhis2.org/analytics-2.41/api/apps/line-listing/index.html'
cy.task('log', `** Hardcoded URL: ${hardcodedUrl}`)

cy.visit(processedUrl, EXTENDED_TIMEOUT)
cy.visit(hardcodedUrl, EXTENDED_TIMEOUT)
.then(() => {
cy.task('log', `Visited URL: ${processedUrl}`)
cy.task('log', `***Visited URL: ${hardcodedUrl}`)
logPageState()

if (!skipEval) {
Expand Down

0 comments on commit 4987f37

Please sign in to comment.