Skip to content

Commit

Permalink
Fixes selenium spec by waiting for create event window to slide into …
Browse files Browse the repository at this point in the history
…screen, and fixes javascript callback with missing event.
  • Loading branch information
marano committed Feb 19, 2013
1 parent f9aaf69 commit c7c2d17
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion public/list.js
Expand Up @@ -177,7 +177,7 @@ $(function () {
$('#event-create-name').focus();
});

$('#event-create-form').submit(function () {
$('#event-create-form').submit(function (event) {
event.preventDefault();
$('#event-create-window').modal('hide');
var newEventName = $('#event-create-name').val();
Expand Down
1 change: 1 addition & 0 deletions spec.rb
Expand Up @@ -432,6 +432,7 @@
it 'creates new event' do
visit '/list'
click_link 'Create Event'
page.should have_css('input[value=Create]', visible: true)
fill_in :name, :with => 'NewEvent'
click_button 'Create'
within_event('NewEvent') do
Expand Down

0 comments on commit c7c2d17

Please sign in to comment.