Scott Walters
d2c8670098
Introduce WebGUI::Test::getPage2, similar to WebGUI::Test::getPage, that makes
...
requests using Plack::Test and attempts to maintain getPage's API.
Change three tests in t/Asset/AssetExportHtml.t to use this instead.
Backstory:
Forthcoming WebGUI::Session::HTTP, ::Request, ::Responses mucking abouts broke
some tests that use WebGUI::Test::getPage; in the case of t/Asset/AssetExportHtml.t,
files were written correctly to disc but tests failed because it was comparing them
to undef, which it got back for the page, apparently because getPage bypasses the
logic that traps printing to a filehandle.
2011-05-11 13:58:20 -04:00
Scott Walters
2d31f7234a
PSGI entry points ( #11632 ) -- add a plackMiddleware section to the config file; modify share/site.psgi to load from it.
...
This is minimal in implementation right now in that there's no support for passing args, which would generally be objects
mixed with strings, to the middlewares being added, as would be necessary if the .psgi files were to be largely migrated
to the config files. I agree that it's important that upgrade scripts be able to add middleware (probably custom ones
that know how to get the session from %$env) but I'm not convinced of the utility of moving much logic out of
share/site.psgi.
2011-05-10 14:40:06 -04:00
Doug Bell
5cefff9f47
make RemoveOldCarts test more robust
2011-05-06 13:20:02 -05:00
Doug Bell
6b0cd93e61
i'm not testing that imagemagick does it correctly...
2011-05-05 20:01:03 -05:00
Doug Bell
0693e33128
getEditForm is a FormBuilder and doesnt include csrfToken (added by www_edit)
2011-05-05 19:45:50 -05:00
Doug Bell
2e720d6899
getEditForm returns FormBuilder and csrfToken should be added by www_edit
2011-05-05 19:43:32 -05:00
Doug Bell
f33f4db65b
admin mode is always on for admins
2011-05-05 19:36:55 -05:00
Doug Bell
bf75ed1615
we now cache the requested URL inside the session, fix it for tests
2011-05-05 19:35:49 -05:00
Doug Bell
61eff5be0c
the default URL is /, not the empty string
2011-05-05 19:31:59 -05:00
Doug Bell
36923dc335
class is now className in www_add
2011-05-05 19:29:11 -05:00
Doug Bell
d7339c9ba8
class is now className in www_add
2011-05-05 19:28:29 -05:00
Doug Bell
18dd9a459d
move export product tests and fix the export product helper
2011-05-05 19:27:22 -05:00
Doug Bell
140b5a546f
move Shelf tests into AssetHelper tests (and fix the thing)
2011-05-05 18:51:42 -05:00
Doug Bell
a476f09e12
Shelf no longer has importProducts or exportProducts, they're AssetHelpers
2011-05-05 16:03:05 -05:00
Doug Bell
65f3f3546f
class is now className when doing www_add
2011-05-05 15:56:54 -05:00
Doug Bell
6ae2862bb6
all template vars have "controls" now
2011-05-05 15:55:48 -05:00
Doug Bell
e34d1ad38c
shortcut no longer overrides getToolbar, so stop testing it
2011-05-05 15:54:14 -05:00
Doug Bell
ef2727f6f5
update usedBy when redeeming subscription code
2011-05-05 15:52:22 -05:00
Doug Bell
475a885146
shortcut now takes ?visitor=1 to edit visitor prefs from dashboard
2011-05-05 15:52:22 -05:00
Scott Walters
848570712e
Basic tests for WebGUI::Middleware::StackTrace
2011-05-05 15:55:55 -04:00
Doug Bell
b0da37ec15
fix EMSSubmissionForm and all its tests
2011-05-04 15:33:04 -05:00
Doug Bell
0c23ba8cd7
perhaps a good plan is in order...
2011-05-04 13:57:35 -05:00
Doug Bell
cdcbf53e42
getToolbarState and toggleToolbar no longer exist
...
The toolbar can be put in any page, and the toggle is now simply
if you are in the Turn Admin On group
2011-05-04 13:51:19 -05:00
Doug Bell
4a8b4c69a2
class is now className for www_add
2011-05-04 13:50:10 -05:00
Doug Bell
2b42142d85
went overboard on deleting from this test
2011-05-04 13:05:18 -05:00
Doug Bell
1e9837365d
switchAdminOn/Off no longer exists
2011-05-04 12:51:48 -05:00
Doug Bell
954d74b88e
switchAdminOn/Off no longer exists
2011-05-04 12:48:56 -05:00
Doug Bell
38eb9a8469
EditableToggle is no longer necessary
2011-05-04 12:48:12 -05:00
Doug Bell
7d1b44e78a
switchAdminOn/Off does not exist
2011-05-04 12:44:42 -05:00
Doug Bell
d8d2ab0930
adminbar is no longer needed
2011-05-03 17:46:17 -05:00
Doug Bell
925a5da1af
switchAdminOn no longer exists
2011-05-03 17:43:51 -05:00
Doug Bell
04eb2a4469
switchAdminOn no longer exists
2011-05-03 17:42:33 -05:00
Doug Bell
a311c192d5
SwitchAdminOn/Off no longer exists
2011-05-03 17:36:34 -05:00
Doug Bell
1a589a655d
Add missing works for anyone in Turn Admin On
2011-05-03 17:35:06 -05:00
Doug Bell
d80dadb28f
www_copy is now only an AssetHelper and is tested there
2011-05-03 17:29:02 -05:00
Scott Walters
57e0fe80fc
no zombie forks as a test criteria
2011-05-03 18:16:41 -04:00
Scott Walters
c8f2810855
no zombie forks as a test criteria
2011-05-03 18:16:04 -04:00
Scott Walters
3e59d0f8fe
no zombie forks a test criteria
2011-05-03 18:15:09 -04:00
Scott Walters
d6ad0852e8
cope with extra fields returned and fix apparent errors in the t/Admin.t tests to make them pass
2011-05-03 18:15:09 -04:00
Scott Walters
5b5a7e9124
"the old API was to pass the asset into process(), but that had some problems" according to preaction, re: WebGUI::AssetHelper::Cut->new now requiring an asset parameter.
...
fixes www_processAssetHelper test; several others in there still fail for me. this fix fixes a WebGUI::Fork leak. I'm sure there are more.
2011-05-03 02:26:08 -04:00
Scott Walters
ee212a16f3
WebGUI::Test::waitForAllForks optionally taking a number of seconds to wait;
...
t/AssetHelper/Copy.t using this as one of its tests; this creates a test failure out of a test suite deadlock for me
2011-05-02 18:25:21 -04:00
Doug Bell
eec3986cf7
fix formbuilder tests for new flags
2011-04-13 17:53:06 -05:00
Doug Bell
04a420e0bd
formbuilder toTemplateVars is now complete and tested
2011-04-12 21:26:20 -05:00
Doug Bell
0168cb16a4
add wg-form-TYPE class to all form control wrappers
2011-04-11 16:57:21 -05:00
Doug Bell
332a734288
do not remove an element while splicing
2011-04-11 15:20:18 -05:00
Doug Bell
3a2b28eb76
allow adding formbuilder fields at specific positions
2011-04-11 15:14:03 -05:00
Doug Bell
b8dec21449
allow templates to be returned from content handlers
2011-04-08 15:44:28 -05:00
Doug Bell
adb67b2137
add style parameter to template assets to store a style template id
2011-04-07 21:49:23 -05:00
Doug Bell
13e8040190
add setParam, getParam, deleteParam to template assets
2011-04-07 20:46:21 -05:00
Graham Knop
9ec788a603
fix upgrade script compile checks
2011-04-06 10:02:19 -05:00