This repository has been archived by the owner on Feb 12, 2024. It is now read-only.
Releases: exozet/behat-utils
Releases · exozet/behat-utils
0.8.1
0.8.0
Changed
- Rename the scrolling steps to use "scroll to middle" as the default. #23
Added
- Add "scrollIntoViewAlignToMiddle" step that allows scrolling such that a given element is at the middle of the viewport
Fixed
- Fix bug in "scrollIntoView" step that made it scroll to have the element at the bottom of the viewport all the time. #17
0.7.1
Fixed
- Fix bug in "resizeWindowToResponsiveViewport" step that made the step unusable
0.7.0
Added
- Add "ConditionSteps" trait for conditional steps that mark tests as "pending" when specific conditions are not met
- Add "resizeWindowToResponsiveViewport" step that allows resizing the driver's browser windows for a given responsive device type
- Add "mouseOver" step that allows hovering elements
- Add "fillFieldWithinDefaultTimeoutUsingJavaScript" step that allows filling input fields within a default timeout using JavaScript
- Add "activateIFrame" that allows switching the currently active frame to a given iFrame
- Add spinned version of MinkContext's "assertElementNotContainsText" method
- Add "HelpUtils" trait for helper functions that can be useful for defining own steps
- Add "assertJavascriptExpression" method to the "HelpUtils" trait wrapping the wait method of Mink's Session
- Add "scrolIntoViewAlignToBottom" step that allows scrolling such that a given element is at the bottom of the viewport
- Add "clickWithinDefaultTimeoutUsingJavaScript" step that allows clicking an element via JavaScript within the default timeout configured
- Add "assertNotPageAddressWithinSpecifiedTime" and "assertNotPageAddressWithinDefaultTimeout" steps that allow asserting that the driver is not on a given page path
0.6.0
Added
- Add "openUrl" and "openUrlWithinSpecifiedTime" steps. Both open a url and check, within a specified time, the current url with the expacted
- Add "actualTimeIsInSpecifiedTime" step that allows checking the current time is in the expacted range
Changed
- Increase the default waiting interval for the SpinnedMinkSteps from 5 seconds to 15 seconds
- Changed error msg from "spin"
0.5.0
Added
- Add "waitForVisibleMatchingElementsWithinSpecifiedTime" step that allows checking elements' visibility in viewport
- Add wrapped parameter-less variants of timeout steps using a default timeout. #7
Changed
- WebsiteInteractionSteps with a timeout now fail correctly when element(s) matching the given selector do not exist. #6
- Make the English step translations the default by moving them before the German translations. #8
- Refactor spinning used in SpinnedMinkSteps to produce better error messages on exceptions