test: increase ui test coverage

This commit is contained in:
2022-06-02 14:03:29 +02:00
committed by Rainer Killinger
parent 9e71efca9f
commit 8710ba43ff
35 changed files with 7201 additions and 209 deletions

View File

@@ -0,0 +1,47 @@
/*
* Copyright (C) 2022 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.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* more details.
*
* You should have received a copy of the GNU General Public License along with
* this program. If not, see <https://www.gnu.org/licenses/>.
*/
describe('assessments', function () {
/*it('should have default back navigation', function () {
// TODO: Implement this
cy.visit(
'assessments/detail/02f065a6-6c02-58ab-97d9-a3febdbc91a1?token=mock',
);
cy.get('ion-back-button').click();
});*/
it('should always have a path', function () {
cy.visit(
'/assessments/detail/02f065a6-6c02-58ab-97d9-a3febdbc91a1?token=mock',
);
cy.get('stapps-data-path')
.should('contain', 'Basismodule')
.should('contain', 'Modellierung');
});
it('should have a collapsed path', function () {
cy.visit(
'/assessments/detail/02f065a6-6c02-58ab-97d9-a3febdbc91a1?token=mock',
);
cy.get('.breadcrumb-collapsed').click();
cy.get('ion-popover').within(() => {
cy.get('ion-item').should('have.length', 3);
cy.get('ion-item').first().should('contain', 'Basismodule');
cy.get('ion-item').last().should('contain', 'Modellierung');
});
});
});