mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-09 19:22:51 +00:00
feat: search url query param handling
This commit is contained in:
committed by
Rainer Killinger
parent
38f0a30076
commit
f349bd7233
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user