Merge branch 'feature/translate-1.1.0' of https://github.com/ONLYOFFICE/AppServer into feature/translate-1.1.0
This commit is contained in:
commit
cd56b02c8e
@ -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');
|
||||
|
@ -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');
|
||||
|
Loading…
Reference in New Issue
Block a user