Skip to content

Commit

Permalink
Merge pull request magento#112 from magento-trigger/AC-103
Browse files Browse the repository at this point in the history
[Trigger] AC-103: Update Third Party library: spectrum/spectrum
  • Loading branch information
xmav authored Sep 23, 2021
2 parents 09c4261 + 30fb172 commit abbc720
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@
<data key="rgb">rgb(64, 127, 128)</data>
<data key="hex">#407f80</data>
<data key="rgbaCenterOfLightDarkSlider">rgba(64, 127, 128, 0.5)</data>
<data key="rgbaCenterOfLightDarkSliderRegex">^rgba\(64,\s*127,\s*128,\s*0.49(\d+)\)</data>
</entity>
<entity name="PageBuilderBackgroundColor_Invalid" type="pagebuilder_background_color_property">
<data key="name">Background Color</data>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,17 @@
<!-- Validate Light/Dark Slider -->
<comment userInput="Validate Light/Dark Slider" stepKey="commentLightDarkSlider"/>
<click selector="{{ColorPicker.lightDarkSlider}}" stepKey="clickLightDarkSlider"/>
<waitForElementVisible selector="{{ColorPicker.panelColorSwatchColor(PageBuilderBackgroundColor_CenterColorHueSlider.section, PageBuilderBackgroundColor_CenterColorHueSlider.fieldName, PageBuilderBackgroundColor_CenterColorHueSlider.rgbaCenterOfLightDarkSlider)}}" stepKey="waitForColorSwatchColor4"/>
<seeInField selector="{{ColorPicker.inputField}}" userInput="{{PageBuilderBackgroundColor_CenterColorHueSlider.rgbaCenterOfLightDarkSlider}}" stepKey="seeColorInInputField4"/>
<waitForElementVisible selector="{{ColorPicker.panelColorSwatch(PageBuilderBackgroundColor_CenterColorHueSlider.section, PageBuilderBackgroundColor_CenterColorHueSlider.fieldName)}}" stepKey="waitForColorSwatchColor4"/>
<executeJS function="return window.getComputedStyle(document.evaluate(&quot;{{ColorPicker.panelColorSwatch(PageBuilderBackgroundColor_CenterColorHueSlider.section, PageBuilderBackgroundColor_CenterColorHueSlider.fieldName)}}//div&quot;, document.body).iterateNext()).backgroundColor" stepKey="grabBackgroundColorValue"/>
<assertRegExp stepKey="seeColorInSwatch">
<expectedResult type="string">/{{PageBuilderBackgroundColor_CenterColorHueSlider.rgbaCenterOfLightDarkSliderRegex}}/</expectedResult>
<actualResult type="variable">grabBackgroundColorValue</actualResult>
</assertRegExp>
<grabValueFrom selector="{{ColorPicker.inputField}}" stepKey="grabColorFromInput" />
<assertRegExp stepKey="seeColorInInputField4">
<expectedResult type="string">/{{PageBuilderBackgroundColor_CenterColorHueSlider.rgbaCenterOfLightDarkSliderRegex}}/</expectedResult>
<actualResult type="variable">grabColorFromInput</actualResult>
</assertRegExp>
<!-- Validate Hex Input Field -->
<comment userInput="Validate Hex Input Field" stepKey="commentHexInput"/>
<fillField selector="{{ColorPicker.inputField}}" userInput="{{PageBuilderBackgroundColor_Plaintext_Green.value}}" stepKey="inputColorInInputField"/>
Expand Down

0 comments on commit abbc720

Please sign in to comment.