Web:Studio:Changing tests Customization change language, Customization change time zone, Customization cancel button test language, Customization cancel button test time zone.
This commit is contained in:
parent
3af4bbc87a
commit
0128dd6d32
@ -118,7 +118,7 @@ Scenario("Change password", async ({ I }) => {
|
||||
I.see("Documents");
|
||||
});
|
||||
|
||||
Scenario("Change language", async ({ I }) => {
|
||||
Scenario("Customization change language", async ({ I }) => {
|
||||
I.mockEndpoint(Endpoints.common, "common");
|
||||
I.mockEndpoint(Endpoints.cultures, "cultures");
|
||||
I.mockEndpoint(Endpoints.timezones, "timezones");
|
||||
@ -127,7 +127,16 @@ Scenario("Change language", async ({ I }) => {
|
||||
I.mockEndpoint(Endpoints.info, "infoSettings");
|
||||
I.mockEndpoint(Endpoints.self, "selfSettings");
|
||||
|
||||
I.amOnPage("/settings/common/customization");
|
||||
if (deviceType !== "mobile") {
|
||||
if (browser === "webkit") {
|
||||
I.wait(30);
|
||||
}
|
||||
I.amOnPage("/settings/common/customization");
|
||||
}
|
||||
|
||||
if (deviceType === "mobile") {
|
||||
I.amOnPage("/settings/common/customization/language-and-time-zone");
|
||||
}
|
||||
|
||||
const languageCurrent = await I.grabTextFrom("#comboBoxLanguage");
|
||||
|
||||
@ -233,7 +242,7 @@ Scenario("Change language", async ({ I }) => {
|
||||
}
|
||||
});
|
||||
|
||||
Scenario("Change time zone", async ({ I }) => {
|
||||
Scenario("Customization change time zone", async ({ I }) => {
|
||||
I.mockEndpoint(Endpoints.common, "common");
|
||||
I.mockEndpoint(Endpoints.cultures, "cultures");
|
||||
I.mockEndpoint(Endpoints.timezones, "timezones");
|
||||
@ -242,9 +251,16 @@ Scenario("Change time zone", async ({ I }) => {
|
||||
I.mockEndpoint(Endpoints.info, "infoSettings");
|
||||
I.mockEndpoint(Endpoints.self, "selfSettings");
|
||||
|
||||
I.amOnPage("/settings/common/customization");
|
||||
if (deviceType !== "mobile") {
|
||||
if (browser === "webkit") {
|
||||
I.wait(30);
|
||||
}
|
||||
I.amOnPage("/settings/common/customization");
|
||||
}
|
||||
|
||||
const timeZoneCurrent = await I.grabTextFrom("#comboBoxTimezone");
|
||||
if (deviceType === "mobile") {
|
||||
I.amOnPage("/settings/common/customization/language-and-time-zone");
|
||||
}
|
||||
|
||||
I.click({
|
||||
react: "ComboBox",
|
||||
@ -253,6 +269,8 @@ Scenario("Change time zone", async ({ I }) => {
|
||||
},
|
||||
});
|
||||
|
||||
const timeZoneCurrent = await I.grabTextFrom("#comboBoxTimezone");
|
||||
|
||||
I.seeElement(".dropdown-container");
|
||||
|
||||
I.click({
|
||||
@ -354,7 +372,7 @@ Scenario("Change time zone", async ({ I }) => {
|
||||
}
|
||||
});
|
||||
|
||||
Scenario("Cancel button test language", async ({ I }) => {
|
||||
Scenario("Customization cancel button test language", async ({ I }) => {
|
||||
I.mockEndpoint(Endpoints.common, "common");
|
||||
I.mockEndpoint(Endpoints.cultures, "cultures");
|
||||
I.mockEndpoint(Endpoints.timezones, "timezones");
|
||||
@ -363,9 +381,16 @@ Scenario("Cancel button test language", async ({ I }) => {
|
||||
I.mockEndpoint(Endpoints.info, "infoSettings");
|
||||
I.mockEndpoint(Endpoints.self, "selfSettings");
|
||||
|
||||
I.amOnPage("/settings/common/customization");
|
||||
if (deviceType !== "mobile") {
|
||||
if (browser === "webkit") {
|
||||
I.wait(30);
|
||||
}
|
||||
I.amOnPage("/settings/common/customization");
|
||||
}
|
||||
|
||||
const languageCurrent = await I.grabTextFrom("#comboBoxLanguage");
|
||||
if (deviceType === "mobile") {
|
||||
I.amOnPage("/settings/common/customization/language-and-time-zone");
|
||||
}
|
||||
|
||||
I.click({
|
||||
react: "ComboBox",
|
||||
@ -374,6 +399,8 @@ Scenario("Cancel button test language", async ({ I }) => {
|
||||
},
|
||||
});
|
||||
|
||||
const languageCurrent = await I.grabTextFrom("#comboBoxLanguage");
|
||||
|
||||
I.seeElement(".dropdown-container");
|
||||
|
||||
I.click({
|
||||
@ -439,7 +466,7 @@ Scenario("Cancel button test language", async ({ I }) => {
|
||||
}
|
||||
});
|
||||
|
||||
Scenario("Cancel button test time zone", async ({ I }) => {
|
||||
Scenario("Customization cancel button test time zone", async ({ I }) => {
|
||||
I.mockEndpoint(Endpoints.common, "common");
|
||||
I.mockEndpoint(Endpoints.cultures, "cultures");
|
||||
I.mockEndpoint(Endpoints.timezones, "timezones");
|
||||
@ -448,9 +475,16 @@ Scenario("Cancel button test time zone", async ({ I }) => {
|
||||
I.mockEndpoint(Endpoints.info, "infoSettings");
|
||||
I.mockEndpoint(Endpoints.self, "selfSettings");
|
||||
|
||||
I.amOnPage("/settings/common/customization");
|
||||
if (deviceType !== "mobile") {
|
||||
if (browser === "webkit") {
|
||||
I.wait(30);
|
||||
}
|
||||
I.amOnPage("/settings/common/customization");
|
||||
}
|
||||
|
||||
const timeZoneCurrent = await I.grabTextFrom("#comboBoxTimezone");
|
||||
if (deviceType === "mobile") {
|
||||
I.amOnPage("/settings/common/customization/language-and-time-zone");
|
||||
}
|
||||
|
||||
I.click({
|
||||
react: "ComboBox",
|
||||
@ -459,6 +493,8 @@ Scenario("Cancel button test time zone", async ({ I }) => {
|
||||
},
|
||||
});
|
||||
|
||||
const timeZoneCurrent = await I.grabTextFrom("#comboBoxTimezone");
|
||||
|
||||
I.seeElement(".dropdown-container");
|
||||
|
||||
I.click({
|
||||
|
Binary file not shown.
After Width: | Height: | Size: 19 KiB |
Binary file not shown.
After Width: | Height: | Size: 20 KiB |
Binary file not shown.
After Width: | Height: | Size: 14 KiB |
Loading…
Reference in New Issue
Block a user