Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
adeldhis2 committed Dec 9, 2024
1 parent 4987f37 commit 75932a4
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions cypress/helpers/startScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,17 @@ export const goToStartPage = (skipEval) => {
// 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(hardcodedUrl, EXTENDED_TIMEOUT)
.then(() => {
cy.task('log', `***Visited URL: ${hardcodedUrl}`)
logPageState()
cy.visit(hardcodedUrl, EXTENDED_TIMEOUT).then(() => {
cy.log(`Visiting the URL: ${hardcodedUrl}`)
cy.task('log', `Visiting the URL: ${hardcodedUrl}`)
console.log(`Visiting the URL: ${hardcodedUrl}`)
logPageState()

if (!skipEval) {
expectStartScreenToBeVisible()
}
})
.catch((error) => {
cy.task('log', `Error visiting URL: ${error.message}`)
})
if (!skipEval) {
expectStartScreenToBeVisible()
}
})
}

export const expectStartScreenToBeVisible = () => {
Expand Down

0 comments on commit 75932a4

Please sign in to comment.