Compare commits

..

2 Commits

Author SHA1 Message Date
Jovan Krunić
ec8c9c639e fix: use modal instead of menu inside of a split pane
Closes #234
2025-07-07 17:40:05 +00:00
Jovan Krunić
1209efe5ff fix: use modal instead of menu inside of a split pane
Closes #234
2025-07-07 19:39:56 +02:00

View File

@@ -14,8 +14,6 @@
*/
describe('context menu', function () {
const contextMenuSelector = 'stapps-context-menu-modal';
beforeEach(function () {
cy.interceptSearch({
extends: {query: 'a'},
@@ -35,21 +33,21 @@ describe('context menu', function () {
});
it('should sort', function () {
cy.get(contextMenuSelector).within(() => {
cy.get('stapps-context').within(() => {
cy.contains('ion-item', 'Name').click();
cy.wait('@search');
});
});
it('should filter', function () {
cy.get(contextMenuSelector).within(() => {
cy.get('stapps-context').within(() => {
cy.contains('ion-item', '(17) Akademische Veranstaltung').click();
cy.wait('@search');
});
});
it('should have a working delete button', function () {
cy.get(contextMenuSelector).within(() => {
cy.get('stapps-context').within(() => {
cy.contains('ion-item', '(17) Akademische Veranstaltung').click();
cy.get('.checkbox-checked').should('have.length', 1);
@@ -62,7 +60,7 @@ describe('context menu', function () {
it('should truncate long category items', function () {
cy.contains('ion-list', 'Akademische Veranstaltung / Kategorien').within(() => {
cy.contains('ion-item', '(1) Tutorium').should('not.exist');
cy.get('ion-button').click();
cy.get('div > ion-button').click();
cy.contains('ion-item', '(1) Tutorium').should('exist');
});
});