Skip to content

Commit 655ed0a

Browse files
committed
[ACQE-7378]Login as customer opt-in checkbox not translatable
Updated paths
1 parent 4cd8bf7 commit 655ed0a

File tree

3 files changed

+16
-29
lines changed

3 files changed

+16
-29
lines changed

app/code/Magento/Config/Test/Mftf/Section/AdminStoresLoginAsCustomerSection.xml

Lines changed: 0 additions & 16 deletions
This file was deleted.
Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!--
33
/**
4-
* Copyright © Magento, Inc. All rights reserved.
5-
* See COPYING.txt for license details.
4+
* Copyright 2024 Adobe
5+
* All Rights Reserved.
66
*/
77
-->
8-
98
<sections xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
109
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Page/etc/SectionObject.xsd">
1110
<section name="AdminCustomerConfigSection">
@@ -14,5 +13,9 @@
1413
<element name="enableExtensionLabel" type="text" selector="//span[contains(text(),'Enable Extension') and contains(@data-config-scope,'[GLOBAL]')]" timeout="30"/>
1514
<element name="disablePageCacheLabel" type="text" selector="//span[contains(text(),'Disable Page Cache For Admin User') and contains(@data-config-scope,'[GLOBAL]')]" timeout="30"/>
1615
<element name="storeViewToLoginToLabel" type="text" selector="//span[contains(text(),'Store To Login To') and contains(@data-config-scope,'[GLOBAL]')]" timeout="30"/>
16+
<element name="TitleForLoginAsCustomerOptInCheckbox" type="text" selector="//span[normalize-space()='Title for Login as Customer opt-in checkbox']"/>
17+
<element name="LoginAsCustomerOptInCheckboxTextField" type="text" selector="//tr[@id='row_login_as_customer_general_shopping_assistance_checkbox_title']//td[@class='value']"/>
18+
<element name="TitleForLoginAsCustomerCheckboxToolTip" type="text" selector="//span[normalize-space()='Login as Customer checkbox tooltip']"/>
19+
<element name="LoginAsCustomerCheckboxToolTipTextField" type="text" selector="//tr[@id='row_login_as_customer_general_shopping_assistance_checkbox_tooltip']//td[@class='value']"/>
1720
</section>
1821
</sections>

app/code/Magento/Config/Test/Mftf/Test/AdminLoginAsCustomerOptInCheckboxNotTranslatableTest.xml renamed to app/code/Magento/LoginAsCustomer/Test/Mftf/Test/AdminLoginAsCustomerOptInCheckboxNotTranslatableTest.xml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
<annotations>
1313
<title value="Admin Login as Customer opt-in checkbox not translatable"/>
1414
<description value="Verify Admin Login as Customer opt-in checkbox not translatable"/>
15-
<features value="Config"/>
15+
<features value="Login as Customer"/>
1616
<severity value="AVERAGE"/>
1717
<testCaseId value="AC-13001"/>
1818
<stories value="Login as Customer opt-in checkbox not translatable"/>
19-
<group value="configuration"/>
19+
<group value="login_as_customer"/>
2020
</annotations>
2121
<before>
2222
<actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/>
@@ -26,18 +26,18 @@
2626
</after>
2727
<amOnPage url="{{AdminLoginAsCustomerConfigPage.url}}" stepKey="navigateToLoginAsCustomerConfigSection"/>
2828
<!--Look for fields "Title for Login as Customer opt-in checkbox" and "Login as Customer checkbox tooltip"-->
29-
<waitForElementVisible selector="{{AdminStoresLoginAsCustomerSection.TitleForLoginAsCustomerOptInCheckbox}}" stepKey="TitleForLoginAsCustomerOptInCheckbox"/>
30-
<waitForElementVisible selector="{{AdminStoresLoginAsCustomerSection.LoginAsCustomerOptInCheckboxTextField}}" stepKey="LoginAsCustomerOptInCheckboxTextField"/>
31-
<waitForElementVisible selector="{{AdminStoresLoginAsCustomerSection.TitleForLoginAsCustomerCheckboxToolTip}}" stepKey="TitleForLoginAsCustomerCheckboxToolTip"/>
32-
<waitForElementVisible selector="{{AdminStoresLoginAsCustomerSection.LoginAsCustomerCheckboxToolTipTextField}}" stepKey="LoginAsCustomerCheckboxToolTipTextField"/>
29+
<waitForElementVisible selector="{{AdminCustomerConfigSection.TitleForLoginAsCustomerOptInCheckbox}}" stepKey="TitleForLoginAsCustomerOptInCheckbox"/>
30+
<waitForElementVisible selector="{{AdminCustomerConfigSection.LoginAsCustomerOptInCheckboxTextField}}" stepKey="LoginAsCustomerOptInCheckboxTextField"/>
31+
<waitForElementVisible selector="{{AdminCustomerConfigSection.TitleForLoginAsCustomerCheckboxToolTip}}" stepKey="TitleForLoginAsCustomerCheckboxToolTip"/>
32+
<waitForElementVisible selector="{{AdminCustomerConfigSection.LoginAsCustomerCheckboxToolTipTextField}}" stepKey="LoginAsCustomerCheckboxToolTipTextField"/>
3333
<!--Switch to Default Store view-->
3434
<actionGroup ref="SwitchToTheNewStoreViewActionGroup" stepKey="selectDefaultStoreView">
3535
<argument name="storeViewName" value="Default Store View"/>
3636
</actionGroup>
3737
<!--Look for fields "Title for Login as Customer opt-in checkbox" and "Login as Customer checkbox tooltip"-->
38-
<waitForElementVisible selector="{{AdminStoresLoginAsCustomerSection.TitleForLoginAsCustomerOptInCheckbox}}" stepKey="TitleForLoginAsCustomerOptInCheckboxInDefaultStoreView"/>
39-
<waitForElementVisible selector="{{AdminStoresLoginAsCustomerSection.LoginAsCustomerOptInCheckboxTextField}}" stepKey="LoginAsCustomerOptInCheckboxTextFieldInDefaultStoreView"/>
40-
<waitForElementVisible selector="{{AdminStoresLoginAsCustomerSection.TitleForLoginAsCustomerCheckboxToolTip}}" stepKey="TitleForLoginAsCustomerCheckboxToolTipInDefaultStoreView"/>
41-
<waitForElementVisible selector="{{AdminStoresLoginAsCustomerSection.LoginAsCustomerCheckboxToolTipTextField}}" stepKey="LoginAsCustomerCheckboxToolTipTextFieldInDefaultStoreView"/>
38+
<waitForElementVisible selector="{{AdminCustomerConfigSection.TitleForLoginAsCustomerOptInCheckbox}}" stepKey="TitleForLoginAsCustomerOptInCheckboxInDefaultStoreView"/>
39+
<waitForElementVisible selector="{{AdminCustomerConfigSection.LoginAsCustomerOptInCheckboxTextField}}" stepKey="LoginAsCustomerOptInCheckboxTextFieldInDefaultStoreView"/>
40+
<waitForElementVisible selector="{{AdminCustomerConfigSection.TitleForLoginAsCustomerCheckboxToolTip}}" stepKey="TitleForLoginAsCustomerCheckboxToolTipInDefaultStoreView"/>
41+
<waitForElementVisible selector="{{AdminCustomerConfigSection.LoginAsCustomerCheckboxToolTipTextField}}" stepKey="LoginAsCustomerCheckboxToolTipTextFieldInDefaultStoreView"/>
4242
</test>
4343
</tests>

0 commit comments

Comments
 (0)