Fixed creation of tickets.

This commit is contained in:
Martin Edenhofer 2015-06-28 04:18:34 +02:00
parent 9570aeeeff
commit 2723f72ff8
10 changed files with 15 additions and 15 deletions

View file

@ -38,7 +38,7 @@
<div class="form-controls">
<a class="btn btn--text btn--subtle js-cancel" href="#/"><%- @T('Cancel & Go Back') %></a>
<button type="submit" class="btn btn--success align-right"><%- @T('Create') %></button>
<button type="submit" class="btn btn--success js-submit align-right"><%- @T('Create') %></button>
</div>
</form>
</div>

View file

@ -18,8 +18,8 @@
<div class="form-controls">
<a class="btn btn--text btn--subtle cancel" href="#/"><%- @T( 'Cancel & Go Back' ) %></a>
<button type="submit" class="btn btn--success submit align-right"><%- @T( 'Create' ) %></button>
<a class="btn btn--text btn--subtle js-cancel" href="#/"><%- @T( 'Cancel & Go Back' ) %></a>
<button type="submit" class="btn btn--success js-submit align-right"><%- @T( 'Create' ) %></button>
</div>
</form>

View file

@ -10,8 +10,8 @@
<form class="form-password">
<div class="form-password-item"></div>
<div class="form-controls">
<a class="btn btn--text btn--subtle cancel" href="#login"><%- @T( 'Cancel & Go Back' ) %></a>
<button class="btn btn--primary submit align-right"><%- @T( 'Submit' ) %></button>
<a class="btn btn--text btn--subtle js-cancel" href="#login"><%- @T( 'Cancel & Go Back' ) %></a>
<button class="btn btn--primary js-submit align-right"><%- @T( 'Submit' ) %></button>
</div>
</form>
<% end %>

View file

@ -4,8 +4,8 @@
<form>
<div class="form-password-change"></div>
<div class="form-controls">
<a class="btn btn--text btn--subtle cancel" href="#/"><%- @T( 'Cancel & Go Back' ) %></a>
<button class="btn btn--primary submit align-right"><%- @T( 'Submit' ) %></button>
<a class="btn btn--text btn--subtle js-cancel" href="#/"><%- @T( 'Cancel & Go Back' ) %></a>
<button class="btn btn--primary js-submit align-right"><%- @T( 'Submit' ) %></button>
</div>
</form>
</div>

View file

@ -4,8 +4,8 @@
<h1><%- @T( 'Join' ) %> <%= @C( 'product_name' ) %></h1>
<form>
<div class="form-controls">
<a class="btn btn--text btn--subtle" href="#login"><%- @T( 'Cancel & Go Back' ) %></a>
<button class="btn btn--primary submit align-right"><%- @T( 'Create my account' ) %></button>
<a class="btn btn--text btn--subtle js-cancel" href="#login"><%- @T( 'Cancel & Go Back' ) %></a>
<button class="btn btn--primary js-submit align-right"><%- @T( 'Create my account' ) %></button>
</div>
</form>
</div>

View file

@ -52,7 +52,7 @@ class AgentTicketActionLevel4Test < TestCase
)
# finally create ticket
click( css: '.content.active button.submit' )
click( css: '.content.active button.js-submit' )
sleep 5
location_check(

View file

@ -29,7 +29,7 @@ class AgentTicketActionLevel6Test < TestCase
sleep 1
# submit form
click( css: '.content.active button.submit' )
click( css: '.content.active button.js-submit' )
sleep 2
# check warning
@ -42,7 +42,7 @@ class AgentTicketActionLevel6Test < TestCase
@browser.execute_script( "App.TestHelper.attachmentUploadFake('.active .richtext .attachments')" )
# submit form
click( css: '.content.active button.submit' )
click( css: '.content.active button.js-submit' )
sleep 5
# no warning

View file

@ -28,7 +28,7 @@ class CustomerTicketCreateTest < TestCase
css: '.newTicket [data-name="body"]',
value: 'some body 123äöü',
)
click( css: '.newTicket button.submit' )
click( css: '.newTicket button.js-submit' )
sleep 5
# check if ticket is shown

View file

@ -30,7 +30,7 @@ class SignupPasswordChangeAndResetTest < TestCase
css: 'input[name="password_confirm"]',
value: 'some-pass',
)
click( css: 'button.submit' )
click( css: 'button.js-submit' )
sleep 5
exists_not( css: '.signup' )

View file

@ -1070,7 +1070,7 @@ wait untill text in selector disabppears
end
sleep 0.8
#instance.execute_script( '$(".content.active .newTicket form").submit();' )
instance.find_elements( { css: '.active .newTicket button.submit' } )[0].click
instance.find_elements( { css: '.active .newTicket button.js-submit' } )[0].click
sleep 1
(1..10).each {
if instance.current_url =~ /#{Regexp.quote('#ticket/zoom/')}/