mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-22 01:22:54 +00:00
feat: improved e2e tests
This commit is contained in:
@@ -13,14 +13,24 @@
|
||||
* this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
describe('App', () => {
|
||||
beforeEach(() => {
|
||||
cy.interceptSearch({
|
||||
extends: 'news/all',
|
||||
fixture: 'news/all',
|
||||
alias: 'newsSection',
|
||||
});
|
||||
cy.visit('/overview');
|
||||
cy.wait(['@config', '@newsSection']);
|
||||
});
|
||||
|
||||
it('should have a proper title', () => {
|
||||
cy.visit('/');
|
||||
cy.visit('/overview');
|
||||
|
||||
cy.title().should('equal', 'StApps');
|
||||
});
|
||||
|
||||
it('should have a proper working navigation', () => {
|
||||
cy.visit('/');
|
||||
cy.visit('/overview');
|
||||
|
||||
cy.contains('ion-tab-button', 'Mensa').click();
|
||||
cy.get('ion-title').contains('Mensa');
|
||||
|
||||
Reference in New Issue
Block a user