diff --git a/packages/portal/cypress/integration/pages/homepage-spec.js b/packages/portal/cypress/integration/pages/homepage-spec.js index b0169b50..65e04d86 100644 --- a/packages/portal/cypress/integration/pages/homepage-spec.js +++ b/packages/portal/cypress/integration/pages/homepage-spec.js @@ -12,10 +12,10 @@ describe('Test Home Page', () => { }); it('submits the search form', () => { - cy.get('form').find('[type="text"]').type('my-dataset'); + cy.get('form').find('[type="text"]').type('gdp'); cy.get('form').submit(); - cy.url().should('include', '/search?q=my-dataset&sort='); - cy.get('.text-3xl').and('contain.text', 'results found'); + cy.url().should('include', '/search?q=gdp&sort='); + cy.get('.text-3xl').and('contain.text', '1 results found'); }); it('shows the recent datasets', () => { diff --git a/packages/portal/cypress/integration/pages/search-spec.js b/packages/portal/cypress/integration/pages/search-spec.js index 045f33e3..e3ce30a7 100644 --- a/packages/portal/cypress/integration/pages/search-spec.js +++ b/packages/portal/cypress/integration/pages/search-spec.js @@ -9,10 +9,13 @@ describe('Test Search Page', () => { }); it('should return a search result', () => { - cy.get('form').find('[type="text"]').type('world population'); + cy.get('form').find('[type="text"]').type('gdp'); cy.get('form').submit(); - cy.url().should('include', 'search?q=world%20population&sort='); + 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', 'World Population'); + cy.get('.text-xl > .text-primary').should( + 'have.text', + 'Country, Regional and World GDP (Gross Domestic Product)' + ); }); });