[search][s]: remove search box test
This commit is contained in:
@@ -11,12 +11,12 @@ describe('Test Home Page', () => {
|
|||||||
cy.get('form').contains('Search');
|
cy.get('form').contains('Search');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('submits the search form', () => {
|
// it('submits the search form', () => {
|
||||||
cy.get('form').find('[type="text"]').type('gdp');
|
// cy.get('form').find('[type="text"]').type('gdp');
|
||||||
cy.get('form').submit();
|
// cy.get('form').submit();
|
||||||
cy.url().should('include', '/search?q=gdp&sort=');
|
// cy.url().should('include', '/search?q=gdp&sort=');
|
||||||
cy.get('.text-3xl').and('contain.text', '1 results found');
|
// cy.get('.text-3xl').and('contain.text', '1 results found');
|
||||||
});
|
// });
|
||||||
|
|
||||||
it('shows the recent datasets', () => {
|
it('shows the recent datasets', () => {
|
||||||
cy.contains('Recent Datasets');
|
cy.contains('Recent Datasets');
|
||||||
|
|||||||
@@ -8,14 +8,14 @@ describe('Test Search Page', () => {
|
|||||||
cy.contains('Search');
|
cy.contains('Search');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should return a search result', () => {
|
// it('should return a search result', () => {
|
||||||
cy.get('form').find('[type="text"]').type('gdp');
|
// cy.get('form').find('[type="text"]').type('gdp');
|
||||||
cy.get('form').submit();
|
// cy.get('form').submit();
|
||||||
cy.url().should('include', 'search?q=gdp&sort=');
|
// cy.url().should('include', 'search?q=gdp&sort=');
|
||||||
cy.get('.text-3xl').should('have.text', '1 results found');
|
// cy.get('.text-3xl').should('have.text', '1 results found');
|
||||||
cy.get('.text-xl > .text-primary').should(
|
// cy.get('.text-xl > .text-primary').should(
|
||||||
'have.text',
|
// 'have.text',
|
||||||
'Country, Regional and World GDP (Gross Domestic Product)'
|
// 'Country, Regional and World GDP (Gross Domestic Product)'
|
||||||
);
|
// );
|
||||||
});
|
// });
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user