feat: search url query param handling

This commit is contained in:
Thea Schöbl
2022-11-01 12:58:29 +00:00
committed by Rainer Killinger
parent 38f0a30076
commit f349bd7233
7 changed files with 23 additions and 19 deletions

View File

@@ -175,7 +175,7 @@ describe('dashboard', async function () {
.find('.searchbar')
.type('test', {scrollBehavior: false})
.type('{enter}', {scrollBehavior: false});
cy.url().should('eq', Cypress.config().baseUrl + '/search/test');
cy.url().should('eq', Cypress.config().baseUrl + '/search?query=test');
cy.get('ion-searchbar').should('have.value', 'test');
cy.get('stapps-data-list-item').should('have.length.greaterThan', 0);
@@ -185,7 +185,7 @@ describe('dashboard', async function () {
cy.visit('/overview');
cy.get('stapps-search-section').find('ion-icon[name=search]').click();
cy.url().should('eq', Cypress.config().baseUrl + '/search/');
cy.url().should('eq', Cypress.config().baseUrl + '/search?query=');
cy.get('ion-searchbar').should('not.have.value');
cy.get('stapps-data-list-item').should('have.length', 0);