Complete the code to wait explicitly for 2 seconds before continuing the test.
cy.[1](2000);
The cy.wait() command pauses the test for the specified milliseconds. Here, 2000 means 2 seconds.
Complete the code to wait explicitly for 500 milliseconds before clicking the button.
cy.[1](500); cy.get('#submit').click();
cy.wait(500) pauses the test for half a second before the next command runs.
Fix the error in the code to wait explicitly for 1 second before checking the text.
cy.wait([1]); cy.get('.message').should('contain', 'Success');
The cy.wait() command expects a number in milliseconds, so 1000 is correct.
Fill both blanks to wait explicitly for 3 seconds and then check if the button is visible.
cy.[1]([2]); cy.get('button#start').should('be.visible');
cy.wait(3000) pauses the test for 3 seconds before checking the button visibility.
Fill all three blanks to wait explicitly for 4 seconds, then get the input field and type 'Hello'.
cy.[1]([2]); cy.get('[3]').type('Hello');
The code waits 4 seconds, then selects the input with id name-input and types 'Hello'.