Rename data-e2e to data-test

This commit is contained in:
Tim Donohue
2022-03-17 11:51:18 -05:00
parent bc705df144
commit 15acb47afa
15 changed files with 51 additions and 51 deletions

View File

@@ -16,8 +16,8 @@ describe('Homepage', () => {
it('should have a working search box', () => {
const queryString = 'test';
cy.get('[data-e2e="search-box"]').type(queryString);
cy.get('[data-e2e="search-button"]').click();
cy.get('[data-test="search-box"]').type(queryString);
cy.get('[data-test="search-button"]').click();
cy.url().should('include', '/search');
cy.url().should('include', 'query=' + encodeURI(queryString));
});