mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-22 01:22:54 +00:00
test: rework ui tests for new layout
This commit is contained in:
committed by
Rainer Killinger
parent
0bce9e5452
commit
de10654675
@@ -1,16 +1,16 @@
|
||||
/*
|
||||
* 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 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.
|
||||
* 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/>.
|
||||
* 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('news', function () {
|
||||
@@ -28,6 +28,7 @@ describe('news', function () {
|
||||
it('should have infinite scroll', function () {
|
||||
cy.visit('/news');
|
||||
cy.get('stapps-news-item').should('have.length', 6);
|
||||
cy.wait(500);
|
||||
cy.get('stapps-news-page > ion-content')
|
||||
.shadow()
|
||||
.find('main')
|
||||
@@ -49,7 +50,7 @@ describe('news', function () {
|
||||
}).as('search');
|
||||
cy.visit('/data-detail/c90c7d30-410f-5aea-a67b-ea1f98929b93');
|
||||
cy.contains('ion-card', 'Ursprünglicher Link')
|
||||
.find('ion-icon[name="open-outline"]')
|
||||
.find('ion-icon[name="open_in_browser"]')
|
||||
.should('exist');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user