Commit Graph

302 Commits

Author SHA1 Message Date
Jeffrey Guo
4f7b794d9c get the last one email 2014-04-30 17:30:50 +12:00
Sean Harvey
58499365fb Merge pull request #34 from silverstripe-labs/pulls/datetime
NEW Set current date and time through Behat
2014-04-16 11:17:45 +12:00
Ingo Schommer
3b8518e4ab NEW Set current date and time through Behat 2014-04-16 11:14:42 +12:00
Ingo Schommer
d313b4ccce Merge pull request #32 from tractorcow/pulls/asset-fixture
API Allow usage of assets with modified / created date specification
2014-04-16 11:12:27 +12:00
Sean Harvey
ce302e74ad Merge pull request #33 from madmatt/pulls/fix-exceptions
FIX: Invalid Exception throw results in CI failures
2014-04-16 09:11:30 +12:00
madmatt
1a1d5bdead FIX: Invalid Exception throw results in CI failures 2014-04-15 23:56:03 +12:00
Damian Mooyman
2520cb1bbf API Allow usage of assets with modified / created date specification 2014-04-15 09:25:32 +12:00
Sean Harvey
7b85ffdcde Merge pull request #31 from srizzling/session-undefined
[MINOR] Session variable was undefined in Basic Context
2014-04-09 13:56:16 +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
6a7df2f702 More resistant login form detection
Had some issues with multiple login forms on the same page,
e.g. for social login, or with duplicated hidden login forms
in the header.
2014-04-07 18:08:56 +12:00
Ingo Schommer
6f0cc7f68e Support multiple login forms on a page
Thanks to Jeffrey Guo for contributing.
2014-04-07 13:03:40 +12:00
Sean Harvey
3928c6ecfe Merge pull request #30 from halkyon/better_fake_password
Don't validate passwords when writing a fake password
2014-04-02 22:21:31 +13:00
Sean Harvey
c8120b2785 Don't validate passwords when writing a fake password
Stops existing password validators causing issues with logging in fake
users, as "secret" might not meet complexity requirements.
2014-04-02 22:09:22 +13:00
Ingo Schommer
8211d3f5fc More versatile "press button/link, confirming dialog" 2014-03-31 14:30:49 +13:00
Ingo Schommer
e55c6bb22a Fixed key/value confusion on fixture label mapping 2014-03-30 23:02:57 +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
Ingo Schommer
41cdc87eae Import DB and fixtures as a separate step
Usually triggered by manual test session environment runs
2014-03-19 08:42:23 +13:00
Ingo Schommer
7f4b5dd19b Added min stability for composer
Required for scrutinizer runs
2014-03-13 10:35:52 +13:00
Will Rossiter
21b05999ee Prevent undefined method on error 2014-03-03 22:11:04 +13:00
Will Rossiter
3d1ea1d7f1 Update homebrew package name
https://github.com/Homebrew/homebrew/tree/master/Library/Formula/
2014-03-03 21:07:43 +13:00
Ingo Schommer
ca455423ef Changes required for persisting state directly on disk
applyState() used to persist in memory, which could lead
to outdated state depending on execution flow between CLI
and web requests. Since state is now in a JSON object,
it also fixes the array access.
2014-03-01 18:26:21 +13:00
Ingo Schommer
7df2fab1bc Note about PHP sessions 2014-03-01 14:47:29 +13:00
Ingo Schommer
a40896db8b Using TestSessionEnvironment for saving emails
Easier debugging through JSON file inspection,
which can be logged in its entirety more easily
than a database table. It also keeps data in one place.
2014-03-01 14:47:12 +13:00
Ingo Schommer
a0517d7680 Better email assertions 2014-02-27 23:02:43 +13:00
Ingo Schommer
d09f2353e6 Negation for email assertions 2014-02-26 14:25:53 +13:00
Ingo Schommer
d003707894 BEHAT_SCREEN_SIZE env var 2014-02-25 11:33:12 +13:00
Ingo Schommer
7f3cc3b6b9 Using CLI to start test session rather than browser
Now possible because we don't rely on browser session state
to link up state to CLI (recent changes in testsession module).
2014-02-24 22:54:12 +13:00
Sam Minnee
99423612ca Relaxed PHPUnit dependency to allow stable versions 2014-02-20 15:30:13 +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
Ingo Schommer
b0af00bf9d Merge pull request #26 from srizzling/master
Added a step for creating a breakpoint
2014-02-12 15:38:01 +13:00
Sriram Venkatesh
f7125a9eff Added a step for creating a breakpoint 2014-02-12 15:09:19 +13:00
Ingo Schommer
aa73fff37c Removed unnecessary token reference
Matt refactored testsession not to require this any longer
2014-02-09 18:58:06 +13:00
Ingo Schommer
0be032261a Calling destructor on fatal errors
Avoids leaving TESTS_RUNNING.js around
2014-02-09 18:56:40 +13:00
Ingo Schommer
0308dee0dc Merge pull request #23 from madmatt/pulls/TestSessionEnvironment
Update SilverStripeAwareInitializer to use new TestSessionEnvironment class
2014-02-09 18:47:13 +13:00
Ingo Schommer
28225f5eb9 Merge pull request #25 from mateusz/field-disabled
NEW Add generic checks for fields being enabled/disabled.
2014-02-07 15:06:36 +13:00
Mateusz Uzdowski
77d5a3d2e9 NEW Add generic checks for fields being enabled/disabled. 2014-02-07 15:04:43 +13:00
madmatt
d61760ddc6 Update SilverStripeAwareInitializer to use new TestSessionEnvironment class.
This change is designed to be merged in at the same time as the matching
testsession PR (silverstripe-labs/silverstripe-testsession#7) is merged in, as
it relies on changes introduced in that PR to function.

This updates the behat-extension to use the new file-based capabilities of the
testsession module. Instead of creating a temp database, it will create an
entire testsession in the initializer, and then continue on as per normal. When
Behat runs end, the cleanup code will completely remove the testsession state,
instead of just removing the temp database. This may mean in the future that
you can hook into the TestSessionEnvironment via extensions, and connect to
other test services during a testsession, then cleanup after yourself on ending
a test session.

API CHANGES:
- Remove SilverStripeAwareInitializer::initializeTempDb()
- Remove SilverStripeAwareInitializer::deleteTempDb()
2014-02-05 11:57:46 +13:00
Ingo Schommer
db5dfa0e01 Merge pull request #19 from madmatt/pulls/fix-fixture-parentid
Fix FixtureContext::prepareAsset() assuming Parent exists
2014-01-30 15:06:39 -08:00
Ingo Schommer
95f832d263 Note about selenium download link being out of date 2014-01-31 12:05:22 +13:00
Ingo Schommer
3075e65099 Updated selenium dependency instructions 2014-01-31 12:03:58 +13:00
Matt
fe77d1dacb In stepCreateRecordWithTable, if a fixture already exists then update that record
rather than create a new, identical fixture.
2014-01-31 10:01:31 +13:00
Ingo Schommer
79dd361e24 Merge pull request #22 from srizzling/traverse-clicklink
Overwritten clickLink to traverse page for first visable field
2014-01-28 13:56:29 -08:00
Sriram Venkatesh
26f47d9d58 General Coding Convention Changes 2014-01-27 10:50:20 +13:00
Sriram Venkatesh
f5957a0586 Click first visable link 2014-01-27 10:42:14 +13:00
Matt Peel
d9d0b4fa93 Fix FixtureContext::prepareAsset() assuming ParentID
In some cases, we want to create an asset that doesn't have a ParentID set. This
fix allows that to happen.
2014-01-07 09:22:49 +13:00
Ingo Schommer
c456dbac5d Merge branch 'doc' of https://github.com/srizzling/silverstripe-behat-extension into srizzling-doc
Conflicts:
	README.md
2013-12-20 01:48:11 +01:00
Sean Harvey
75b31bdc3d Merge pull request #18 from madmatt/patch-1
Update README.md
2013-12-18 20:03:27 -08:00
madmatt
3d2c7a36c8 Update README.md
Fix regex difference
2013-12-19 17:02:10 +13:00