Skip to content

Commit 8c4ef43

Browse files
committed
[ACQE-7378]Login as customer opt-in checkbox not translatable
New test case added
1 parent d253a44 commit 8c4ef43

File tree

2 files changed

+59
-0
lines changed

2 files changed

+59
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!--
3+
/**
4+
* Copyright 2024 Adobe
5+
* All Rights Reserved.
6+
*/
7+
-->
8+
<sections
9+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:mftf:Page/etc/SectionObject.xsd">
10+
<section name="AdminStoresCustomerConfigurationSection">
11+
<element name="TitleForLoginAsCustomerOptInCheckbox" type="text" selector="//span[normalize-space()='Title for Login as Customer opt-in checkbox']"/>
12+
<element name="LoginAsCustomerOptInCheckboxTextField" type="text" selector="//tr[@id='row_login_as_customer_general_shopping_assistance_checkbox_title']//td[@class='value']"/>
13+
<element name="TitleForLoginAsCustomerCheckboxToolTip" type="text" selector="//span[normalize-space()='Login as Customer checkbox tooltip']"/>
14+
<element name="LoginAsCustomerCheckboxToolTipTextField" type="text" selector="//tr[@id='row_login_as_customer_general_shopping_assistance_checkbox_tooltip']//td[@class='value']"/>
15+
</section>
16+
</sections>
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
/**
4+
* Copyright 2024 Adobe
5+
* All Rights Reserved.
6+
*/
7+
-->
8+
<tests
9+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
11+
<test name="AdminLoginAsCustomerOptInCheckboxNotTranslatableTest">
12+
<annotations>
13+
<title value="Admin Login as Customer opt-in checkbox not translatable"/>
14+
<description value="Verify Admin Login as Customer opt-in checkbox not translatable"/>
15+
<features value="Config"/>
16+
<severity value="AVERAGE"/>
17+
<testCaseId value="AC-13001"/>
18+
<stories value="Login as Customer opt-in checkbox not translatable"/>
19+
<group value="configuration"/>
20+
</annotations>
21+
<before>
22+
<actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/>
23+
</before>
24+
<after>
25+
<actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
26+
</after>
27+
<amOnPage url="{{AdminLoginAsCustomerConfigPage.url}}" stepKey="navigateToLoginAsCustomerConfigSection"/>
28+
<!--Look for fields "Title for Login as Customer opt-in checkbox" and "Login as Customer checkbox tooltip"-->
29+
<waitForElementVisible selector="{{AdminStoresCustomerConfigurationSection.TitleForLoginAsCustomerOptInCheckbox}}" stepKey="TitleForLoginAsCustomerOptInCheckbox"/>
30+
<waitForElementVisible selector="{{AdminStoresCustomerConfigurationSection.LoginAsCustomerOptInCheckboxTextField}}" stepKey="LoginAsCustomerOptInCheckboxTextField"/>
31+
<waitForElementVisible selector="{{AdminStoresCustomerConfigurationSection.TitleForLoginAsCustomerCheckboxToolTip}}" stepKey="TitleForLoginAsCustomerCheckboxToolTip"/>
32+
<waitForElementVisible selector="{{AdminStoresCustomerConfigurationSection.LoginAsCustomerCheckboxToolTipTextField}}" stepKey="LoginAsCustomerCheckboxToolTipTextField"/>
33+
<!--Switch to Default Store view-->
34+
<actionGroup ref="SwitchToTheNewStoreViewActionGroup" stepKey="selectDefaultStoreView">
35+
<argument name="storeViewName" value="Default Store View"/>
36+
</actionGroup>
37+
<!--Look for fields "Title for Login as Customer opt-in checkbox" and "Login as Customer checkbox tooltip"-->
38+
<waitForElementVisible selector="{{AdminStoresCustomerConfigurationSection.TitleForLoginAsCustomerOptInCheckbox}}" stepKey="TitleForLoginAsCustomerOptInCheckboxInDefaultStoreView"/>
39+
<waitForElementVisible selector="{{AdminStoresCustomerConfigurationSection.LoginAsCustomerOptInCheckboxTextField}}" stepKey="LoginAsCustomerOptInCheckboxTextFieldInDefaultStoreView"/>
40+
<waitForElementVisible selector="{{AdminStoresCustomerConfigurationSection.TitleForLoginAsCustomerCheckboxToolTip}}" stepKey="TitleForLoginAsCustomerCheckboxToolTipInDefaultStoreView"/>
41+
<waitForElementVisible selector="{{AdminStoresCustomerConfigurationSection.LoginAsCustomerCheckboxToolTipTextField}}" stepKey="LoginAsCustomerCheckboxToolTipTextFieldInDefaultStoreView"/>
42+
</test>
43+
</tests>

0 commit comments

Comments
 (0)