Commit Graph

302 Commits

Author SHA1 Message Date
Ingo Schommer
22330d02cb Env var support, documented xdebug usage 2013-12-18 14:58:44 +01:00
Sriram Venkatesh
fb0aa8d132 Added new doc for running test in chrome 2013-12-18 15:33:09 +13:00
Ingo Schommer
58a9d59e7f More flexible EmailContext 2013-12-13 17:52:42 +01:00
Ingo Schommer
d79acc457a Fixed Behat scope for "I log in as"
Fixes an issues where multiple "Email" form fields are present
on a page, e.g. through a global login overlay in the header.
2013-12-10 23:28:47 +01:00
Ingo Schommer
02a6db854c Merge branch 'pulls/webservice-tutorial' 2013-12-05 23:27:53 +01:00
Ingo Schommer
45e8d6da8d Webservices+Phockito+TestSession 2013-12-05 23:27:51 +01:00
Sean Harvey
8141ced2fd BUG Fixing logout issues with steps
stepIAmNotLoggedIn() would previously just kill the test
session, but this has the side effect of losing the current testsession
temporary database, so this causes steps of logging out to fail the
rest of the steps in a scenario.

See https://github.com/silverstripe-labs/silverstripe-behat-extension/pull/12
2013-11-29 00:49:36 +01:00
Ingo Schommer
0a9505e8b2 Merge pull request #15 from halkyon/select_radio
Adding definition for selecting an input by the group's label.
2013-11-28 15:24:43 -08:00
Ingo Schommer
aa31606dde Merge pull request #14 from halkyon/message_rework
stepIWillSeeALogInMessage now allows for other form message types.
2013-11-28 15:23:50 -08:00
Ingo Schommer
7ae16ae06c Merge pull request #13 from halkyon/existing_group_permissions
Don't create a group in iAmLoggedInWithPermissions if already exists.
2013-11-28 15:23:22 -08: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
Sean Harvey
8da0dbaea5 stepIWillSeeALogInMessage now allows for other form message types.
Not just "bad", but others like "good", "required", and "warning".
2013-11-28 22:54:00 +13:00
Sean Harvey
c53a01c652 Don't create a group in iAmLoggedInWithPermissions if already exists. 2013-11-28 22:30:45 +13:00
Ingo Schommer
a4dbc8faa5 Webservices+Phockito+TestSession 2013-11-27 19:35:14 +01:00
Ingo Schommer
d4006b9735 Allow augmentation of test session state
Useful e.g. to add a 'stubfile' path in a custom feature context.
2013-11-27 19:32:14 +01:00
Ingo Schommer
fc6d1ac12b Fixed Behat+SS coding conventions 2013-11-15 17:38:37 +01:00
Sriram Venkatesh
1166991d49 New step: "record last edited at relative date"
Thanks to @srizzling for getting this started in
https://github.com/silverstripe/silverstripe-cms/pull/896
2013-11-15 14:09:24 +01: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
7d48da31d4 Merge pull request #10 from srizzling/is620
Added delete state to step defination
2013-11-15 02:32:13 -08:00
Ingo Schommer
e7e5912f07 FIX: need to upper-case each word, not just first word
Thanks to @jthomerson
See https://github.com/silverstripe-labs/silverstripe-behat-extension/pull/5
2013-11-15 11:30:10 +01:00
Sriram Venkatesh
aea5357c23 Fixed up some formatting issues 2013-11-15 16:57:15 +13:00
Sriram Venkatesh
6b7f5f8d3c Added delete state to step defination 2013-11-15 16:15:37 +13: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
7e37cc8e00 New "there should be a file" step 2013-10-23 21:27:54 +02:00
Ingo Schommer
32c7cea104 Clean up files from assets/ after each scenario 2013-10-23 21:27:52 +02:00
Ingo Schommer
1cd15f5429 Added tutorial link 2013-10-22 11:20:45 +02:00
Ingo Schommer
9b34e635d8 New "password should be" step 2013-10-22 10:53:29 +02:00
Ingo Schommer
4aef64a789 Fixed email link step quoting and selection 2013-10-22 00:04:25 +02:00
Ingo Schommer
a284e3183d New "password should be" step 2013-10-22 00:04:25 +02:00
Ingo Schommer
8c8fd5923d Fixed code highlighting in tutorial 2013-10-21 19:13:14 +02:00
Ingo Schommer
2ae8cba590 Tutorial 2013-10-21 19:07:05 +02:00
Ingo Schommer
a244986495 "go to <named record>" behat step definition 2013-10-21 13:19:46 +02:00
Sean Harvey
e94d6e35f6 Merge pull request #9 from halkyon/readme_fixes
Use quotes around composer require argument for some shells.
2013-10-20 13:37:30 -07:00
Ingo Schommer
5ca904ae12 Initializer and custom namespace support 2013-10-18 17:47:33 +02:00
Sean Harvey
a1a2f7711d Use quotes around composer require argument for some shells.
* is a reserved character in some shells and will cause an error
if you don't put quotes around the argument.
2013-10-17 14:25:52 +13:00
Ingo Schommer
6b1b4d3d94 Fixed markdown formatting 2013-10-17 00:43:20 +02:00
Sean Harvey
aff363242a Merge pull request #8 from stojg/master
DOC Use the latest version of selenium standalone server
2013-10-10 13:32:51 -07: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
Stig Lindqvist
e9144767a5 DOC Use the latest version of selenium standalone server
This will fix a bug when the Firefox version is 23 or 24. See original bug report on https://code.google.com/p/selenium/issues/detail?id=6051
2013-10-03 12:57:18 +13:00
Stig Lindqvist
b0ede964c4 Update README to use the downloaded selenium jar 2013-10-03 11:44:45 +13:00
Ingo Schommer
89a72625d4 BasicContext->stepPageCantBeFound 2013-10-02 17:10:13 +02:00
Ingo Schommer
9fec29e120 Require symfony/dom-crawler
Need this for apply-formatting.feature
2013-09-15 01:50:48 +02:00
Ingo Schommer
69589bf316 Behat: Remove "start session" log
Need to find a better way to log this, which is not interfering
with the main formatter output
2013-09-14 19:36:12 +02:00
Ingo Schommer
a0ac37fa1e More useful fillField() implementation
Was defaulting to the first non-visible
2013-09-14 19:27:19 +02:00
Ingo Schommer
f89879836a Step def for "record has the <field> <value>" 2013-09-14 19:20:58 +02:00
Ingo Schommer
2550d5e858 Updated behat/behat from 2.4 to 2.5
Incl. related dependencies
2013-09-14 18:40:40 +02:00
Ingo Schommer
f18a54afbe stepIPressTheButtonConfirmingTheDialog 2013-08-16 13:32:13 +02:00
Ingo Schommer
2e3d97cbc4 More verbose startsession 2013-08-13 13:04:49 +02:00
Ingo Schommer
6f9352cac4 Use stdout instead of stderror for notices 2013-08-13 13:03:29 +02:00
Ingo Schommer
35bd86bf93 Fixed framework dependency version
Wasn't matching 3.1.0-rc1 tag. Now possible thanks to Sam's work which has recently been merged into the composer project.
2013-08-13 12:19:59 +02:00