Complete the code to set the command timeout to 10 seconds.
cy.get('button', { timeout: [1] })
The command timeout is set in milliseconds. 10000 means 10 seconds.
Complete the code to set the assertion timeout to 5 seconds.
cy.get('input').should('be.visible', { timeout: [1] })
The assertion timeout controls how long Cypress waits for the assertion to pass. 5000 means 5 seconds.
Fix the error in the code to correctly set command timeout to 8 seconds.
cy.get('div', { timeout: [1] })
Timeout must be a number in milliseconds. 8000 means 8 seconds.
Fill both blanks to set command timeout to 7 seconds and assertion timeout to 3 seconds.
cy.get('span', { timeout: [1] }).should('exist', { timeout: [2] })
The command timeout is 7000 ms (7 seconds) and the assertion timeout is 3000 ms (3 seconds).
Fill all three blanks to set command timeout to 6 seconds, assertion timeout to 4 seconds, and check existence.
cy.get('section', { timeout: [1] }).should('be.visible', { timeout: [2] }).and('[3]')
Command timeout is 6000 ms (6 seconds), assertion timeout is 4000 ms (4 seconds), and the chained assertion checks that the element exists.