mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-22 09:32:41 +00:00
test: rework ui tests for new layout
This commit is contained in:
committed by
Rainer Killinger
parent
0bce9e5452
commit
de10654675
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user