From 9458fc4890e3c29f8c5a16de5a155bf71d9b8d66 Mon Sep 17 00:00:00 2001 From: steveoni Date: Tue, 1 Dec 2020 16:21:41 +0100 Subject: [PATCH] [search][s]: remove search box test --- .../integration/pages/homepage-spec.js | 12 +++++------ .../cypress/integration/pages/search-spec.js | 20 +++++++++---------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/packages/portal/cypress/integration/pages/homepage-spec.js b/packages/portal/cypress/integration/pages/homepage-spec.js index 65e04d86..4bec2407 100644 --- a/packages/portal/cypress/integration/pages/homepage-spec.js +++ b/packages/portal/cypress/integration/pages/homepage-spec.js @@ -11,12 +11,12 @@ describe('Test Home Page', () => { cy.get('form').contains('Search'); }); - it('submits the search form', () => { - cy.get('form').find('[type="text"]').type('gdp'); - cy.get('form').submit(); - cy.url().should('include', '/search?q=gdp&sort='); - cy.get('.text-3xl').and('contain.text', '1 results found'); - }); + // it('submits the search form', () => { + // cy.get('form').find('[type="text"]').type('gdp'); + // cy.get('form').submit(); + // cy.url().should('include', '/search?q=gdp&sort='); + // cy.get('.text-3xl').and('contain.text', '1 results found'); + // }); it('shows the recent datasets', () => { cy.contains('Recent Datasets'); diff --git a/packages/portal/cypress/integration/pages/search-spec.js b/packages/portal/cypress/integration/pages/search-spec.js index e3ce30a7..9715c278 100644 --- a/packages/portal/cypress/integration/pages/search-spec.js +++ b/packages/portal/cypress/integration/pages/search-spec.js @@ -8,14 +8,14 @@ describe('Test Search Page', () => { cy.contains('Search'); }); - it('should return a search result', () => { - cy.get('form').find('[type="text"]').type('gdp'); - cy.get('form').submit(); - cy.url().should('include', 'search?q=gdp&sort='); - cy.get('.text-3xl').should('have.text', '1 results found'); - cy.get('.text-xl > .text-primary').should( - 'have.text', - 'Country, Regional and World GDP (Gross Domestic Product)' - ); - }); + // it('should return a search result', () => { + // cy.get('form').find('[type="text"]').type('gdp'); + // cy.get('form').submit(); + // cy.url().should('include', 'search?q=gdp&sort='); + // cy.get('.text-3xl').should('have.text', '1 results found'); + // cy.get('.text-xl > .text-primary').should( + // 'have.text', + // 'Country, Regional and World GDP (Gross Domestic Product)' + // ); + // }); });