feat: add easy way to configure search filtering for nested properties

This commit is contained in:
Thea Schöbl
2023-03-22 19:40:49 +00:00
committed by Rainer Killinger
parent e75a46633c
commit 2220ab24b3
18 changed files with 237 additions and 68 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2022 StApps
* Copyright (C) 2023 StApps
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the Free
* Software Foundation, version 3.
@@ -54,14 +54,14 @@ describe('context menu', function () {
it('should truncate categories', function () {
cy.get('stapps-context').within(() => {
cy.contains('ion-item', '(4) Universitätsveranstaltung').should('not.exist');
cy.contains('ion-item', '(1) Universitätsveranstaltung').should('not.exist');
cy.get('.context-filter > ion-button').click();
cy.contains('ion-item', '(4) Universitätsveranstaltung').should('exist');
});
});
it('should truncate long category items', function () {
cy.contains('ion-list', 'Kategorien | Akademische Veranstaltung').within(() => {
cy.contains('ion-list', 'Akademische Veranstaltung / Kategorien').within(() => {
cy.contains('ion-item', '(1) Tutorium').should('not.exist');
cy.get('div > ion-button').click();
cy.contains('ion-item', '(1) Tutorium').should('exist');