Commit Graph

317 Commits

Author SHA1 Message Date
Damian Mooyman
32f5b3968a Updated to mink 1.6 stable as 1.6 unstable is no longer available
See 87a18d72e4
2015-02-05 14:27:14 +13:00
Damian Mooyman
50cf107242 Unrestrict behat access to framework 4.x branch 2015-01-16 13:25:50 +13:00
Damian Mooyman
f3c5df7957 Merge pull request #80 from silverstripe-iterators/pulls/password-complexity
More complex password default to comply with custom authenticators
2015-01-12 09:48:58 +13: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
Ingo Schommer
fcdfb04825 More complex password default to comply with custom authenticators
Changed from 'secret' to 'Secret!123'.

For example, the CWP default configuration increases the required
complexity to include uppercase letters, see https://gitlab.cwp.govt.nz/cwp/cwp-core/blob/master/_config.php#L134

This should not impact existing tests since the password is only used
indirectly, through "Given I login with ADMIN permissions".
2015-01-06 14:22:15 +13:00
Ben Manu
13271a8a6d FIX: adding caller class parameter to DataObject get 2015-01-06 10:51:41 +13:00
Ingo Schommer
76145df1ae Merge pull request #79 from jeffreyguo/pulls/email-contains
Updated and added new step to check the email contains text
2014-12-15 23:11:22 +13:00
Jeffrey Guo
9a51b32196 Updated and added new step to check the email contains text
add text to readme for pull request 3635 in framework
2014-11-27 17:58:11 +13:00
Ingo Schommer
752abd4447 Note about publication state on child pages 2014-11-11 15:59:24 +13:00
Ingo Schommer
6a24609dab More examples on versioned 2014-11-11 15:47:00 +13:00
Ingo Schommer
a35636f6b0 Add relationship example to README 2014-11-11 13:31:35 +13:00
Sean Harvey
c6edcccb03 Merge pull request #78 from phillprice/patch-1
Update README.md
2014-10-14 12:01:23 +13:00
Phill Price
e66c50a6e3 Update README.md
Removed goutte from the example to match removal from project
2014-10-13 11:39:14 +01:00
Sean Harvey
0562d7e8f2 Merge pull request #76 from silverstripe-labs/revert-75-disable_create_database
Revert "Allow setting create_temp_database to false to stop temp db crea...
2014-10-09 09:55:35 +13:00
Sean Harvey
61e7bb44cf Revert "Allow setting create_temp_database to false to stop temp db creation" 2014-10-09 09:55:00 +13:00
Mateusz U
276b5298f5 Merge pull request #75 from halkyon/disable_create_database
Allow setting create_temp_database to false to stop temp db creation
2014-10-09 09:30:46 +13:00
Sean Harvey
9c3319a342 Allow setting create_temp_database to false to stop temp db creation
TestSessionEnvironment by default will create a temporary database for
use with behat tests, but this may not be required.

e.g. in your behat.yml:

```
default:
...

  extensions:
    ...
    SilverStripe\BehatExtension\Extension:
      create_temp_database: false
```
2014-10-08 19:59:06 +13:00
Ingo Schommer
5af1c3d7b6 Merge pull request #57 from srizzling/wait-for-text
Fixes #27: I wait until I see text/element
2014-10-07 20:43:34 +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
Ingo Schommer
dd2f51fa74 Merge pull request #71 from jeffreyguo/pulls/jserror-2
Fixed issue on removing a DOM attribute
2014-09-09 08:18:09 +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
83a72210cd Merge pull request #69 from jeffreyguo/pulls/assign-object-to-object
Assign one object to another object
2014-09-05 09:48:20 +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
Jeffrey Guo
67eca1fcff assign one object to another
corrected name convention and sql issue
corrected grammar in description
2014-09-03 17:00:29 +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
Ingo Schommer
78cfd94240 Merge pull request #64 from tractorcow/pulls/stacktrace
API Support extended JS error reporting
2014-08-09 11:33:22 +12:00
Damian Mooyman
bc3b0b4cd5 API Support extended JS error reporting 2014-08-08 16:50:10 +12:00
Ingo Schommer
bf36edecad Merge pull request #58 from oddnoc/safe-sitetree
Make SiteTree reference conditional in InitProcessor
2014-08-02 17:54:20 +12:00
Stig Lindqvist
8b020593b7 Update documentation about how to set a breakpoint 2014-07-29 11:24:58 +12:00
Fred Condo
81f292a2b5 Make SiteTree reference conditional
This makes the boilerplate code compatible for testing
framework-only sites.
2014-07-16 17:01:45 -07:00
Ingo Schommer
8956b2d4fa More resilient login form detection (works with absolute URLs and GET params) 2014-07-01 19:13:32 +12:00
Ingo Schommer
0a6854590d Merge pull request #55 from tractorcow/pulls/fix-elementnotfound
BUG Fix call to protected method and js change event
2014-06-27 08:15:52 +12:00
Damian Mooyman
042989e270 BUG Fix js change event not triggering 2014-06-26 09:22:18 +12:00
Damian Mooyman
fd40300c54 Merge pull request #56 from halkyon/exception_error
Fixing call to protected method elementNotFound.
2014-06-26 09:19:06 +12:00
Sean Harvey
223bb9ec22 Fixing call to protected method elementNotFound.
elementNotFound() is protected, it can't be called from outside.
Throw an ElementNotFoundException instead.
2014-06-25 13:47:35 +12:00
Ingo Schommer
3fe596be63 Fix quoting in getRegionObj()
Based on work by @jeffreyguo.
See https://github.com/silverstripe-labs/silverstripe-behat-extension/pull/53/commits
2014-06-18 12:58:37 +12:00
Sean Harvey
2dbd92b16b Merge pull request #51 from silverstripe-labs/pulls/table
Step definitions for table interactions
2014-06-17 13:43:29 +12:00
Ingo Schommer
4f8039d39f Removed unused goutte driver 2014-06-16 08:46:21 +12:00
Ingo Schommer
74116566f3 Merge pull request #47 from silverstripe-labs/develop
Update to mink 1.6 and remove custom fork
2014-06-13 15:37:05 +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
e72395956c Merge pull request #49 from jeffreyguo/pulls/single-quote-getregion
handle single quote with build-in way in getRegionObj
2014-06-12 16:30:32 +12:00
Jeffrey Guo
27a381f4e0 handle single quote with build-in way in getRegionObj 2014-06-12 14:51:01 +12:00