Convert Event edit test to WebGUI::Test::Mechanize, and fix issues with adding events to a calendar.

This commit is contained in:
Colin Kuskie 2011-12-12 10:26:05 -08:00
parent 69dc8f576e
commit 27f3b3e935
2 changed files with 15 additions and 59 deletions

View file

@ -445,8 +445,8 @@ around canEdit => sub {
return 1 if (
$self->canAddEvent( $userId )
&& $form->process("assetId") eq "new"
&& $form->process("func") eq "editSave"
&& $form->process("class") eq "WebGUI::Asset::Event"
&& $form->process("func") eq "addSave"
&& $form->process("className") eq "WebGUI::Asset::Event"
);
# Who can edit the Calendar can do everything