test: rework ui tests for new layout

This commit is contained in:
Thea Schöbl
2022-08-25 14:40:33 +00:00
committed by Rainer Killinger
parent 0bce9e5452
commit de10654675
11 changed files with 143 additions and 132 deletions

View File

@@ -14,9 +14,10 @@
*/
/**
* Something akin to a.b.c but never a...
* Something akin to a.b.c a.b.C but never a... or a.AbC
*/
const probablyBadTranslationPattern = /^\s*\w+\.(\w+\.?)+\s*(?!\.\.\.)\s*$/;
const probablyBadTranslationPattern =
/^\s*([a-z_]+|[A-Z_]+)\.(([a-z_]+|[A-Z_]+)\.)([a-z_]+|[A-Z_]+)$/;
describe('translations', function () {
for (const path of [
@@ -46,6 +47,7 @@ describe('translations', function () {
'canteen',
'catalog',
'schedule',
'dashboard',
[
'schedule add modal',
() => {
@@ -68,6 +70,8 @@ describe('translations', function () {
cy.visit(`/${path}`);
}
cy.wait(500);
cy.get('ion-app *').each($element => {
const text = $element.text();
if (text) {