ConfigAccountActionGroup.xml 2.8 KB

123456789101112131415161718192021222324252627282930313233
  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="SetDotmailerAccountData">
  5. <amOnPage url="{{AdminDotmailerAccountsPage.url}}" stepKey="navigateToDotmailerAccountPage"/>
  6. <waitForPageLoad stepKey="waitForPageLoad"/>
  7. <conditionalClick stepKey="expandAccountsTab" selector="{{AdminDotmailerAccountsSection.accountsFieldsetToggle}}" dependentSelector="{{AdminDotmailerAccountsSection.accountsFieldset}}" visible="false"/>
  8. <selectOption selector="{{AdminDotmailerAccountsSection.accountsEnabledOption}}" userInput="Yes" stepKey="setEnabled"/>
  9. <fillField selector="{{AdminDotmailerAccountsSection.accountsUsernameField}}" userInput="{{_CREDS.engagement_cloud_api_username}}" stepKey="setApiUserName"/>
  10. <fillField selector="{{AdminDotmailerAccountsSection.accountsPasswordField}}" userInput="{{_CREDS.engagement_cloud_api_password}}" stepKey="setApiPassword"/>
  11. <click selector="{{AdminMainActionsSection.save}}" stepKey="saveConfig" />
  12. <waitForPageLoad stepKey="waitForPageLoad1"/>
  13. </actionGroup>
  14. <actionGroup name="ResetDotmailerAccountData">
  15. <amOnPage url="{{AdminDotmailerAccountsPage.url}}" stepKey="navigateToDotmailerAccountPageReset"/>
  16. <waitForPageLoad stepKey="waitForPageLoadReset"/>
  17. <conditionalClick stepKey="expandAccountsTabReset" selector="{{AdminDotmailerAccountsSection.accountsFieldsetToggle}}" dependentSelector="{{AdminDotmailerAccountsSection.accountsFieldset}}" visible="false"/>
  18. <clearField selector="{{AdminDotmailerAccountsSection.accountsUsernameField}}" stepKey="setApiUserNameReset"/>
  19. <clearField selector="{{AdminDotmailerAccountsSection.accountsPasswordField}}" stepKey="setApiPasswordReset"/>
  20. <selectOption selector="{{AdminDotmailerAccountsSection.accountsEnabledOption}}" userInput="No" stepKey="setEnabledReset"/>
  21. <click selector="{{AdminMainActionsSection.save}}" stepKey="saveConfigReset" />
  22. <waitForPageLoad stepKey="waitForPageLoad2"/>
  23. </actionGroup>
  24. <actionGroup name="SetDisableDotmailerAccount">
  25. <amOnPage url="{{AdminDotmailerAccountsPage.url}}" stepKey="navigateToDotmailerAccountPage1"/>
  26. <waitForPageLoad stepKey="waitForPageLoad3"/>
  27. <conditionalClick stepKey="expandAccountsTab1" selector="{{AdminDotmailerAccountsSection.accountsFieldsetToggle}}" dependentSelector="{{AdminDotmailerAccountsSection.accountsFieldset}}" visible="false"/>
  28. <selectOption selector="{{AdminDotmailerAccountsSection.accountsEnabledOption}}" userInput="No" stepKey="setEnabled1"/>
  29. <click selector="{{AdminMainActionsSection.save}}" stepKey="saveConfig1" />
  30. <waitForPageLoad stepKey="waitForPageLoad4"/>
  31. </actionGroup>
  32. </actionGroups>