Complete the code to set the base URL in cypress.config.js.
module.exports = {
e2e: {
baseUrl: '[1]'
}
};The baseUrl setting must be a full URL string, like "http://localhost:3000". This tells Cypress where to start tests.
Complete the code to set the test files pattern in cypress.config.js.
module.exports = {
e2e: {
specPattern: '[1]'
}
};The specPattern defines which test files Cypress runs. The pattern "**/*.test.js" matches all files ending with .test.js in any folder.
Fix the error in setting the viewport width in cypress.config.js.
module.exports = {
e2e: {
viewportWidth: [1]
}
};The viewportWidth must be a number, not a string or object. So use 1000 without quotes.
Fill both blanks to set viewport height and enable video recording in cypress.config.js.
module.exports = {
e2e: {
viewportHeight: [1],
video: [2]
}
};viewportHeight expects a number like 800. The video setting is a boolean; true enables video recording.
Fill all three blanks to set retries, default command timeout, and base URL in cypress.config.js.
module.exports = {
e2e: {
retries: [1],
defaultCommandTimeout: [2],
baseUrl: [3]
}
};retries is a number for how many times to retry failed tests. defaultCommandTimeout is a number in milliseconds for command wait time. baseUrl is a string URL.