Damian Mooyman
9d083e0135
API Add check for text in current alert
2017-01-12 15:12:29 +13:00
Damian Mooyman
eaa17cf18f
Update behat extension for updated button styling
2017-01-10 14:41:19 +13:00
Sam Minnee
2dbe57e0cb
FIX: Remove PSR2 failures
2016-09-14 12:02:37 +12:00
Damian Mooyman
faca1e6f71
Update for framework namespacing
2016-09-08 10:07:35 +12:00
Damian Mooyman
1eb1004957
Convert to PSR-2 standard
...
Enforce PHPCS checking
2016-08-10 13:56:30 +12:00
Damian Mooyman
869478ac0d
Search for table title with class contains 'title', rather than class == 'title'
2016-08-04 10:55:42 +12:00
Hamish Friedlander
c3ed455ec6
FIX iSelectFromInputGroup not understanding bootstraps input-in-label structure
2016-07-28 16:51:33 +12:00
Ingo Schommer
350392148f
Remove Behat-related code dependant on PHPUnit 3.x
...
We've upgraded SilverStripe core to PHPUnit 4.x now, and the Functions.php has moved locations.
Since all custom contexts either use one of these contexts, or extend off SilverStripeContext,
we can be certain that the required assertions are automatically included for custom contexts,
no need to duplicate the require_once() calls.
Note that Behat 3.x suggests using static methods on a class, e.g. PHPUnit_Framework_Assert::assertSame (see http://docs.behat.org/en/master/quick_intro.html ).
This seems quite verbose, and increases the upgrade burden on any project using Behat.
2016-02-24 19:50:47 +13:00
Ingo Schommer
cfd1044ae5
Merge pull request #100 from scott1702/confirming-element-click
...
Add ability to confirm/dismiss dialogs after clicking in elements
2015-10-22 16:29:44 +13:00
scott1702
33eb0adf0c
Add ability to confirm/dismiss dialogs after clicking in elements
2015-10-22 16:27:48 +13:00
scott1702
b2ff3e73ad
Add double click action
2015-10-22 16:13:47 +13:00
Damian Mooyman
15b491ed74
API Update for filesystem refactor
2015-10-16 10:53:37 +13:00
Igor Nadj
8088c29f5a
ENH: adding safety try-catch blocks to prevent whole test suite from falling over
2015-09-10 14:32:09 +12:00
Ingo Schommer
88dabf555a
Fixed "wait" step, merge regression from df4a859
2015-04-21 15:26:15 +12:00
Jeffrey Guo
df4a859dbc
Scroll to page top/bottom or an element
...
Amended by @chillu, see https://github.com/silverstripe-labs/silverstripe-behat-extension/pull/74
2015-01-08 00:03:23 +13:00
Sriram Venkatesh
e1d42b89fe
Formatting Cleanup
2014-10-01 02:20:40 +13:00
Sriram Venkatesh
6f648a418a
Fixes #27 : I wait for the text/element
2014-10-01 01:44:30 +13:00
Ingo Schommer
060f45f2cc
Merge pull request #73 from jeffreyguo/pulls/cms-modal
...
Handle modal dialogue which will block all tests in the cms
2014-09-23 22:20:23 +12:00
Jeffrey Guo
54eaa63845
Handle modal dialogue which will block all tests in the cms
...
updated as an afterScenario event
2014-09-22 17:32:46 +12:00
Jeffrey Guo
cfbf61f60c
wait for DOM to remove attribute
...
use window.jQuery instead of $
updated to removeAttr method
2014-09-08 16:45:23 +12:00
Ingo Schommer
6e13a68762
Merge pull request #70 from jeffreyguo/pulls/jserror
...
wait for DOM to remove attribute
2014-09-05 09:46:24 +12:00
Jeffrey Guo
8ea981519e
wait for DOM to remove attribute
...
use window.jQuery instead of $
2014-09-04 14:10:25 +12:00
Ingo Schommer
16d5a0099b
Merge pull request #67 from tractorcow/pulls/refactor-resize
...
Refactor default screen resize into SilverStripeContext
2014-09-02 08:47:31 +12:00
Ingo Schommer
d139eb82e0
Merge pull request #60 from jeffreyguo/pulls/text-before-after
...
check a text is before or after another text
2014-08-22 09:04:47 +12:00
Jeffrey Guo
9ba5043871
check a text is before or after another text
...
added comments for each step
check a text is before or after another text in an element
2014-08-21 18:22:22 +12:00
Damian Mooyman
c0801a63ef
Refactor default screen resize into SilverStripeContext
2014-08-14 16:21:31 +12:00
Damian Mooyman
01b129de35
Ensure that the window is maximised prior to running each step
2014-08-11 17:58:02 +12:00
Damian Mooyman
bc3b0b4cd5
API Support extended JS error reporting
2014-08-08 16:50:10 +12:00
Ingo Schommer
ff86bde036
Step definitions for table interactions
...
Moved from framework module which had GridField specific steps under the same naming.
Made them more versatile, working for both GridField and other <table> nodes.
2014-06-13 15:05:32 +12:00
Ingo Schommer
0694d4e3a3
Merge pull request #39 from srizzling/pulls/fill-in-field-region
...
Adding support to fill in field in a specfic region
2014-06-04 13:24:50 +12:00
Jeffrey Guo
86d8139f1b
find radiobutton by its type
2014-05-23 11:16:50 +12:00
Sean Harvey
b789a3b67c
Adding "I follow the link "test", dismissing the dialog" step
2014-05-16 10:35:07 +12:00
Sriram Venkatesh
5e58444e07
Adding support to fill in field in a specfic region
2014-05-07 16:07:21 +12:00
Ingo Schommer
10da00c796
Guard against older jQuery versions
2014-05-07 10:47:29 +12:00
Damian Mooyman
a7ae2497d4
API Allow "I select the * radio button"
2014-05-05 13:05:15 +12:00
madmatt
1a1d5bdead
FIX: Invalid Exception throw results in CI failures
2014-04-15 23:56:03 +12:00
Sriram Venkatesh
2294ee92a2
Session in undefined
2014-04-09 13:06:35 +12:00
Ingo Schommer
2ec760cb1d
Improved region support, added "see text in region" step
2014-04-09 10:31:41 +12:00
Ingo Schommer
8211d3f5fc
More versatile "press button/link, confirming dialog"
2014-03-31 14:30:49 +13:00
Ingo Schommer
415a7d3c87
Allow fields and buttons to be disabled in behat steps
2014-03-26 13:35:41 +13:00
Sriram Venkatesh
2acd0889d4
Find Link in Region
2014-03-19 17:09:43 +13:00
Sam Minnee
5a7d25e530
FIX: Use executeScript() because we discard the return value.
...
evaluateScript() injects 'return ' into the executed script, which often breaks multi-line code.
executeScript() is better
2014-02-13 18:08:28 +13:00
Sriram Venkatesh
f7125a9eff
Added a step for creating a breakpoint
2014-02-12 15:09:19 +13:00
Mateusz Uzdowski
77d5a3d2e9
NEW Add generic checks for fields being enabled/disabled.
2014-02-07 15:04:43 +13:00
Sean Harvey
084980ea27
Adding definition for selecting an input by the group's label.
...
Allows for a step like: `I select "Admins" from "Groups" input group`
Adding it to BasicContext as it seems useful to be used in
other places, not just the CMS admin interface. It could be used
frontend forms that use CheckboxSetField, or OptionsetField,
for example.
Thanks to @srizzling for writing the definition for this step!
2013-11-28 23:18:59 +13:00
Ingo Schommer
1c950f07de
Relative date/time format support
...
Thanks to @srizzling for getting this started in
https://github.com/silverstripe/silverstripe-cms/pull/896
2013-11-15 14:05:28 +01:00
Ingo Schommer
3f13791404
Only delete files/folders if they exist on filesystem
...
This broke "add a folder" in manage-files.feature
2013-11-06 01:22:30 +01:00
Ingo Schommer
32c7cea104
Clean up files from assets/ after each scenario
2013-10-23 21:27:52 +02:00
Ingo Schommer
7bb06f0fea
Fixed screenshot_path usage
...
Was referencing outdated $this->context settings
instead of parent context. Still a bit hacky to make
assumptions on parent context, but its difficult to pass
through arguments to subcontexts.
2013-10-09 14:29:42 +02:00
Ingo Schommer
89a72625d4
BasicContext->stepPageCantBeFound
2013-10-02 17:10:13 +02:00