ConfigConfigurationPageActionGroup.xml 3.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
  4. <actionGroup name="SetAllPreferencesTypeToShowNo">
  5. <amOnPage url="{{AdminDotmailerConfigurationPage.url}}" stepKey="navigateToDotmailerConfigurationPage"/>
  6. <waitForPageLoad stepKey="waitForPageLoad"/>
  7. <conditionalClick stepKey="expandCustomerPreferencesTab" selector="{{AdminDotmailerConfigurationPreferencesSection.preferencesFieldsetToggle}}" dependentSelector="{{AdminDotmailerConfigurationPreferencesSection.preferencesFieldset}}" visible="false"/>
  8. <selectOption selector="{{AdminDotmailerConfigurationPreferencesSection.showPreferencesToCustomer}}" userInput="No" stepKey="setShowPreferencesDisabled"/>
  9. <selectOption selector="{{AdminDotmailerConfigurationPreferencesSection.showAddressBookToCustomer}}" userInput="No" stepKey="setShowBooksDisabled"/>
  10. <selectOption selector="{{AdminDotmailerConfigurationPreferencesSection.showDatafieldToCustomer}}" userInput="No" stepKey="setShowDataFieldsDisabled"/>
  11. <click selector="{{AdminMainActionsSection.save}}" stepKey="saveConfig" />
  12. <waitForPageLoad stepKey="waitForPageLoad2"/>
  13. </actionGroup>
  14. <actionGroup name="SetOnePreferenceTypeToShowYes">
  15. <amOnPage url="{{AdminDotmailerConfigurationPage.url}}" stepKey="navigateToDotmailerConfigurationPage1"/>
  16. <waitForPageLoad stepKey="waitForPageLoad3"/>
  17. <conditionalClick stepKey="expandCustomerPreferencesTab1" selector="{{AdminDotmailerConfigurationPreferencesSection.preferencesFieldsetToggle}}" dependentSelector="{{AdminDotmailerConfigurationPreferencesSection.preferencesFieldset}}" visible="false"/>
  18. <selectOption selector="{{AdminDotmailerConfigurationPreferencesSection.showPreferencesToCustomer}}" userInput="Yes" stepKey="setShowPreferencesEnabled"/>
  19. <selectOption selector="{{AdminDotmailerConfigurationPreferencesSection.showAddressBookToCustomer}}" userInput="No" stepKey="setShowBooksDisabled1"/>
  20. <selectOption selector="{{AdminDotmailerConfigurationPreferencesSection.showDatafieldToCustomer}}" userInput="No" stepKey="setShowDataFieldsDisabled1"/>
  21. <click selector="{{AdminMainActionsSection.save}}" stepKey="saveConfig1" />
  22. <waitForPageLoad stepKey="waitForPageLoad4"/>
  23. </actionGroup>
  24. <actionGroup name="SetCustomerConsentText">
  25. <amOnPage url="{{AdminDotmailerConfigurationPage.url}}" stepKey="navigateToDotmailerConfigurationPage3"/>
  26. <waitForPageLoad stepKey="waitForPageLoad5"/>
  27. <conditionalClick stepKey="expandConsentTab" selector="{{AdminDotmailerConfigurationConsentSection.consentFieldsetToggle}}" dependentSelector="{{AdminDotmailerConfigurationConsentSection.consentFieldset}}" visible="false"/>
  28. <fillField selector="{{AdminDotmailerConfigurationConsentSection.customerConsentText}}" userInput="Test consent text" stepKey="setConsentText"/>
  29. <click selector="{{AdminMainActionsSection.save}}" stepKey="saveConfig2" />
  30. <waitForPageLoad stepKey="waitForPageLoad6"/>
  31. </actionGroup>
  32. <actionGroup name="ResetCustomerConsentText">
  33. <amOnPage url="{{AdminDotmailerConfigurationPage.url}}" stepKey="navigateToDotmailerConfigurationPage3Reset"/>
  34. <waitForPageLoad stepKey="waitForPageLoad7"/>
  35. <conditionalClick stepKey="expandConsentTab2" selector="{{AdminDotmailerConfigurationConsentSection.consentFieldsetToggle}}" dependentSelector="{{AdminDotmailerConfigurationConsentSection.consentFieldset}}" visible="false"/>
  36. <clearField selector="{{AdminDotmailerConfigurationConsentSection.customerConsentText}}" stepKey="setConsentTextReset"/>
  37. <click selector="{{AdminMainActionsSection.save}}" stepKey="saveConfig3" />
  38. <waitForPageLoad stepKey="waitForPageLoad8"/>
  39. </actionGroup>
  40. </actionGroups>