Skip to content
This repository has been archived by the owner on Jun 11, 2021. It is now read-only.

Commit

Permalink
fix(test): lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Shipow committed Jun 17, 2020
1 parent 949a24a commit 896ef59
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 23 deletions.
2 changes: 2 additions & 0 deletions .env.sample
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
GITHUB_TOKEN=
CYPRESS_TOKEN=
PERCY_TOKEN=
4 changes: 3 additions & 1 deletion cypress/integration/search/actions.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
});

Expand Down
25 changes: 3 additions & 22 deletions cypress/plugins/index.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,4 @@
/// <reference types="cypress" />
// ***********************************************************
// 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);
};
on('task', percyHealthCheck);
};

0 comments on commit 896ef59

Please sign in to comment.