Merge branch 'feature/translate-1.1.0' of https://github.com/ONLYOFFICE/AppServer into feature/translate-1.1.0

This commit is contained in:
Alexey Safronov 2021-12-22 19:10:45 +03:00
commit cd56b02c8e
2 changed files with 14 additions and 11 deletions

View File

@ -11,15 +11,15 @@ const featureName = isModel ? `Files translation(model) ` : `Files translation t
Feature(featureName, { timeout: 90 });
Before(async ({ I }) => {
I.mockData();
});
for (const culture of cultures) {
Before(async ({ I }) => {
I.mockData();
changeCulture(culture);
});
Scenario(`Main page test ${culture}`, { timeout: 30 }, ({ I }) => {
changeCulture(culture);
const isExсeption = ignoringCultures.mainPage.indexOf(culture) != -1;
console.log(isExсeption || !isModel, culture);
I.mockEndpoint(Endpoints.root, 'empty');
I.mockEndpoint(Endpoints.my, 'default');
@ -42,6 +42,7 @@ for (const culture of cultures) {
});
Scenario(`Profile menu test ${culture}`, { timeout: 30 }, ({ I }) => {
changeCulture(culture);
const isExсeption = ignoringCultures.profileMenu.indexOf(culture) != -1;
I.mockEndpoint(Endpoints.root, 'empty');
@ -67,6 +68,7 @@ for (const culture of cultures) {
});
Scenario(`Main button test ${culture}`, { timeout: 30 }, ({ I }) => {
changeCulture(culture);
const isExсeption = ignoringCultures.mainButton.indexOf(culture) != -1;
I.mockEndpoint(Endpoints.root, 'empty');

View File

@ -11,13 +11,12 @@ const featureName = isModel ? `People translation(model) ` : `People translation
Feature(featureName, { timeout: 90 });
Before(async ({ I }) => {
I.mockData();
});
for (const culture of cultures) {
Before(async ({ I }) => {
I.mockData();
changeCulture(culture);
});
Scenario(`Main page test ${culture}`, { timeout: 30 }, ({ I }) => {
changeCulture(culture);
const isExсeption = ignoringCultures.mainPage.indexOf(culture) != -1;
I.mockEndpoint(Endpoints.filter, 'many');
@ -39,6 +38,7 @@ for (const culture of cultures) {
});
Scenario(`Main button test ${culture}`, { timeout: 30 }, ({ I }) => {
changeCulture(culture);
const isExсeption = ignoringCultures.mainButton.indexOf(culture) != -1;
I.mockEndpoint(Endpoints.filter, 'many');
@ -65,6 +65,7 @@ for (const culture of cultures) {
});
Scenario(`Table settings test ${culture}`, { timeout: 30 }, async ({ I }) => {
changeCulture(culture);
const isExсeption = ignoringCultures.tableSettings.indexOf(culture) != -1;
await I.mockEndpoint(Endpoints.filter, 'many');