Complete the code to import Percy commands in Cypress.
import '[1]';
You need to import @percy/cypress to enable Percy commands in Cypress tests.
Complete the code to take a Percy snapshot named 'Homepage'.
cy.[1]('Homepage');
The correct command to take a Percy snapshot in Cypress is percySnapshot.
Fix the error in the code to correctly initialize Percy in Cypress support file.
// In cypress/support/e2e.js import '[1]';
You should import @percy/cypress in the support file to initialize Percy commands properly.
Fill both blanks to configure Percy token and enable Percy in Cypress environment variables.
Cypress.env('[1]', '[2]');
The environment variable key for Percy token is PERCY_TOKEN. The value should be your actual Percy token string, here represented as percyToken.
Fill all three blanks to write a test that visits the homepage, waits for content, and takes a Percy snapshot named 'Home Page'.
describe('Visual test', () => { it('checks homepage', () => { cy.[1]('/'); cy.[2](1000); cy.[3]('Home Page'); }); });
The test visits the homepage with visit, waits 1 second with wait, then takes a Percy snapshot with percySnapshot.