0
0
Cypresstesting~10 mins

cy.reload() in Cypress - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to reload the current page in Cypress.

Cypress
cy.[1]()
Drag options to blanks, or click blank then click option'
Areload
Bwait
Cclick
Dvisit
Attempts:
3 left
💡 Hint
Common Mistakes
Using cy.visit() instead reloads a new URL.
Using cy.click() or cy.wait() does not reload the page.
2fill in blank
medium

Complete the code to reload the page and force the reload ignoring the cache.

Cypress
cy.reload({ [1]: true })
Drag options to blanks, or click blank then click option'
Aforce
BbypassCache
CignoreCache
Dcache
Attempts:
3 left
💡 Hint
Common Mistakes
Using cache or ignoreCache which are not valid options.
Forgetting to pass an options object.
3fill in blank
hard

Fix the error in the code to reload the page with force option.

Cypress
cy.reload({ [1]: true })
Drag options to blanks, or click blank then click option'
Areload
Bcache
Cforce
DignoreCache
Attempts:
3 left
💡 Hint
Common Mistakes
Passing 'true' as a string instead of boolean true.
Using invalid option names.
4fill in blank
hard

Fill both blanks to reload the page and wait for 2 seconds after reload.

Cypress
cy.[1]()
cy.[2](2000)
Drag options to blanks, or click blank then click option'
Areload
Bwait
Cvisit
Dclick
Attempts:
3 left
💡 Hint
Common Mistakes
Using visit instead of reload.
Using click instead of wait.
5fill in blank
hard

Fill all three blanks to reload the page forcing cache bypass and then check the URL contains 'dashboard'.

Cypress
cy.[1]({ [2]: true })
cy.url().should('include', [3])
Drag options to blanks, or click blank then click option'
Areload
Bforce
C'dashboard'
Dvisit
Attempts:
3 left
💡 Hint
Common Mistakes
Using visit instead of reload.
Passing force as a string instead of boolean.
Not quoting the string 'dashboard'.