diff --git a/.env.sample b/.env.sample index 3b926cd62..6c78d049a 100644 --- a/.env.sample +++ b/.env.sample @@ -1 +1,3 @@ GITHUB_TOKEN= +CYPRESS_TOKEN= +PERCY_TOKEN= \ No newline at end of file diff --git a/cypress/integration/search/actions.spec.js b/cypress/integration/search/actions.spec.js index 091911f05..8020a60a9 100644 --- a/cypress/integration/search/actions.spec.js +++ b/cypress/integration/search/actions.spec.js @@ -95,7 +95,9 @@ context('Recent and Favorites', () => { it('Recent search can be deleted', () => { cy.get('.DocSearch-SearchButton').click(); - cy.get('#docsearch-item-0').find('[data-cy=remove-recent]').trigger('click'); + cy.get('#docsearch-item-0') + .find('[data-cy=remove-recent]') + .trigger('click'); cy.contains('No recent searches').should('be.visible'); }); diff --git a/cypress/plugins/index.js b/cypress/plugins/index.js index a2ddb5ce1..3f7f3c918 100644 --- a/cypress/plugins/index.js +++ b/cypress/plugins/index.js @@ -1,23 +1,4 @@ -/// -// *********************************************************** -// This example plugins/index.js can be used to load plugins -// -// You can change the location of this file or turn off loading -// the plugins file with the 'pluginsFile' configuration option. -// -// You can read more here: -// https://on.cypress.io/plugins-guide -// *********************************************************** - -// This function is called when a project is opened or re-opened (e.g. due to -// the project's config changing) - -/** - * @type {Cypress.PluginConfig} - */ - -let percyHealthCheck = require('@percy/cypress/task') - +const percyHealthCheck = require('@percy/cypress/task'); module.exports = (on, config) => { - on("task", percyHealthCheck); -}; \ No newline at end of file + on('task', percyHealthCheck); +};