You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

35 lines
1.8 KiB

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. /**
  4. * Copyright © Magento, Inc. All rights reserved.
  5. * See COPYING.txt for license details.
  6. */
  7. -->
  8. <actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  9. xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
  10. <actionGroup name="AssertElementInTranslateInlineModeActionGroup">
  11. <arguments>
  12. <argument name="elementSelector" type="string"/>
  13. </arguments>
  14. <executeJS function="return window.getComputedStyle(document.querySelector('{{elementSelector}}')).getPropertyValue('outline-color')" stepKey="getBorderColor"/>
  15. <executeJS function="return window.getComputedStyle(document.querySelector('{{elementSelector}}')).getPropertyValue('outline-style')" stepKey="getBorderType"/>
  16. <executeJS function="return window.getComputedStyle(document.querySelector('{{elementSelector}}')).getPropertyValue('outline-width')" stepKey="getBorderWidth"/>
  17. <assertStringContainsString stepKey="assertBorderColor">
  18. <actualResult type="const">$getBorderColor</actualResult>
  19. <expectedResult type="string">{{TranslateInlineModeStyleData.borderColor}}</expectedResult>
  20. </assertStringContainsString>
  21. <assertStringContainsString stepKey="assertBorderType">
  22. <actualResult type="const">$getBorderType</actualResult>
  23. <expectedResult type="string">{{TranslateInlineModeStyleData.borderType}}</expectedResult>
  24. </assertStringContainsString>
  25. <assertStringContainsString stepKey="assertBorderWidth">
  26. <actualResult type="const">$getBorderWidth</actualResult>
  27. <expectedResult type="string">{{TranslateInlineModeStyleData.borderWidth}}</expectedResult>
  28. </assertStringContainsString>
  29. </actionGroup>
  30. </actionGroups>