mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-18 16:20:12 +01:00
fix failing selenium tests
This commit is contained in:
parent
bfb6c4ee9a
commit
29e1de8ef2
3 changed files with 6 additions and 6 deletions
|
|
@ -30,7 +30,7 @@ function update_project_page() {
|
||||||
remove_project_edit_form();
|
remove_project_edit_form();
|
||||||
update_and_show_project_settings();
|
update_and_show_project_settings();
|
||||||
TracksForm.set_project_name("<%= escape_javascript(@project.name)%>");
|
TracksForm.set_project_name("<%= escape_javascript(@project.name)%>");
|
||||||
$("h2#project_name").html("<%= escape_javascript(@project.name)%>");
|
$("h2 div#project_name").html("<%= escape_javascript(@project.name)%>");
|
||||||
<% if @project.default_context %>
|
<% if @project.default_context %>
|
||||||
TracksForm.set_context_name_and_default_context_name("<%= escape_javascript(@project.default_context.name)%>");
|
TracksForm.set_context_name_and_default_context_name("<%= escape_javascript(@project.default_context.name)%>");
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
|
||||||
|
|
@ -274,7 +274,7 @@ end
|
||||||
|
|
||||||
Then /^the project title should be "(.*)"$/ do |title|
|
Then /^the project title should be "(.*)"$/ do |title|
|
||||||
wait_for :timeout => 2 do
|
wait_for :timeout => 2 do
|
||||||
selenium.get_text("css=h2#project_name") == title
|
selenium.get_text("css=h2#project_name_container div#project_name") == title
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue