mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-24 18:42:45 +00:00
Compare commits
2 Commits
796bba3329
...
ec8c9c639e
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ec8c9c639e | ||
|
|
1209efe5ff |
@@ -14,8 +14,6 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
describe('context menu', function () {
|
describe('context menu', function () {
|
||||||
const contextMenuSelector = 'stapps-context-menu-modal';
|
|
||||||
|
|
||||||
beforeEach(function () {
|
beforeEach(function () {
|
||||||
cy.interceptSearch({
|
cy.interceptSearch({
|
||||||
extends: {query: 'a'},
|
extends: {query: 'a'},
|
||||||
@@ -35,21 +33,21 @@ describe('context menu', function () {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it('should sort', function () {
|
it('should sort', function () {
|
||||||
cy.get(contextMenuSelector).within(() => {
|
cy.get('stapps-context').within(() => {
|
||||||
cy.contains('ion-item', 'Name').click();
|
cy.contains('ion-item', 'Name').click();
|
||||||
cy.wait('@search');
|
cy.wait('@search');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should filter', function () {
|
it('should filter', function () {
|
||||||
cy.get(contextMenuSelector).within(() => {
|
cy.get('stapps-context').within(() => {
|
||||||
cy.contains('ion-item', '(17) Akademische Veranstaltung').click();
|
cy.contains('ion-item', '(17) Akademische Veranstaltung').click();
|
||||||
cy.wait('@search');
|
cy.wait('@search');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should have a working delete button', function () {
|
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.contains('ion-item', '(17) Akademische Veranstaltung').click();
|
||||||
|
|
||||||
cy.get('.checkbox-checked').should('have.length', 1);
|
cy.get('.checkbox-checked').should('have.length', 1);
|
||||||
@@ -62,7 +60,7 @@ describe('context menu', function () {
|
|||||||
it('should truncate long category items', function () {
|
it('should truncate long category items', function () {
|
||||||
cy.contains('ion-list', 'Akademische Veranstaltung / Kategorien').within(() => {
|
cy.contains('ion-list', 'Akademische Veranstaltung / Kategorien').within(() => {
|
||||||
cy.contains('ion-item', '(1) Tutorium').should('not.exist');
|
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');
|
cy.contains('ion-item', '(1) Tutorium').should('exist');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user