diff options
Diffstat (limited to 'spec/features')
| -rw-r--r-- | spec/features/companies_spec.rb | 4 | ||||
| -rw-r--r-- | spec/features/connection_links_spec.rb | 20 | ||||
| -rw-r--r-- | spec/features/lines_spec.rb | 10 | ||||
| -rw-r--r-- | spec/features/networks_spec.rb | 4 | ||||
| -rw-r--r-- | spec/features/referentials_spec.rb | 2 | ||||
| -rw-r--r-- | spec/features/routes_spec.rb | 2 | ||||
| -rw-r--r-- | spec/features/stop_areas_spec.rb | 4 | ||||
| -rw-r--r-- | spec/features/time_tables_spec.rb | 4 | ||||
| -rw-r--r-- | spec/features/timebands_spec.rb | 4 | ||||
| -rw-r--r-- | spec/features/users/user_edit_spec.rb | 2 | ||||
| -rw-r--r-- | spec/features/workbenches_spec.rb | 2 |
11 files changed, 29 insertions, 29 deletions
diff --git a/spec/features/companies_spec.rb b/spec/features/companies_spec.rb index b8e85194c..1b9dae56f 100644 --- a/spec/features/companies_spec.rb +++ b/spec/features/companies_spec.rb @@ -64,10 +64,10 @@ describe "Companies", :type => :feature do # describe "edit and return to show" do # it "edit company" do # visit line_referential_company_path(line_referential, subject) - # click_link "Modifier ce transporteur" + # click_link "Editer ce transporteur" # fill_in "company_name", :with => "Company Modified" # fill_in "Numéro d'enregistrement", :with => "test-1" - # click_button("Modifier transporteur") + # click_button("Editer transporteur") # expect(page).to have_content("Company Modified") # end # end diff --git a/spec/features/connection_links_spec.rb b/spec/features/connection_links_spec.rb index 788e58326..524fbb89a 100644 --- a/spec/features/connection_links_spec.rb +++ b/spec/features/connection_links_spec.rb @@ -13,42 +13,42 @@ describe "ConnectionLinks", :type => :feature do expect(page).to have_content(connection_links.first.name) expect(page).to have_content(connection_links.last.name) end - - end - describe "show" do + end + + describe "show" do it "display connection_link" do visit referential_connection_links_path(referential) click_link "#{connection_links.first.name}" expect(page).to have_content(connection_links.first.name) end - + it "display map" do allow(subject).to receive(:stop_areas).and_return(Array.new(2) { create(:stop_area) }) visit referential_connection_links_path(referential) click_link "#{connection_links.first.name}" expect(page).to have_selector("#map.connection_link") end - + end - describe "new" do + describe "new" do it "creates connection_link and return to show" do visit referential_connection_links_path(referential) click_link "Ajouter une correspondance" fill_in "Nom", :with => "ConnectionLink 1" - fill_in "Identifiant Neptune", :with => "test:ConnectionLink:1" + fill_in "Identifiant Neptune", :with => "test:ConnectionLink:1" click_button("Créer correspondance") expect(page).to have_content("ConnectionLink 1") end end - describe "edit and return to show" do + describe "edit and return to show" do it "edit connection_link" do visit referential_connection_link_path(referential, subject) - click_link "Modifier cette correspondance" + click_link "Editer cette correspondance" fill_in "Nom", :with => "ConnectionLink Modified" - click_button("Modifier correspondance") + click_button("Editer correspondance") expect(page).to have_content("ConnectionLink Modified") end end diff --git a/spec/features/lines_spec.rb b/spec/features/lines_spec.rb index f15d33f60..bbe3c757b 100644 --- a/spec/features/lines_spec.rb +++ b/spec/features/lines_spec.rb @@ -28,21 +28,21 @@ describe "Lines", :type => :feature do context 'filtering' do it 'supports filtering by name' do - fill_in 'q[name_or_objectid_cont]', with: lines.first.name + fill_in 'q[name_or_number_or_objectid_cont]', with: lines.first.name click_button 'search-btn' expect(page).to have_content(lines.first.name) expect(page).not_to have_content(lines.last.name) end it 'supports filtering by number' do - fill_in 'q[name_or_objectid_cont]', with: lines.first.number + fill_in 'q[name_or_number_or_objectid_cont]', with: lines.first.number click_button 'search-btn' expect(page).to have_content(lines.first.name) expect(page).not_to have_content(lines.last.name) end it 'supports filtering by objectid' do - fill_in 'q[name_or_objectid_cont]', with: lines.first.objectid + fill_in 'q[name_or_number_or_objectid_cont]', with: lines.first.objectid click_button 'search-btn' expect(page).to have_content(lines.first.name) expect(page).not_to have_content(lines.last.name) @@ -88,10 +88,10 @@ describe "Lines", :type => :feature do # describe "edit and return to show" do # it "edit line" do # visit line_referential_line_path(line_referential, subject) - # click_link "Modifier cette ligne" + # click_link "Editer cette ligne" # fill_in "line_name", :with => "Line Modified" # fill_in "Numéro d'enregistrement", :with => "test-1" - # click_button("Modifier ligne") + # click_button("Editer ligne") # expect(page).to have_content("Line Modified") # end # end diff --git a/spec/features/networks_spec.rb b/spec/features/networks_spec.rb index 3e3be8ef1..523b2e898 100644 --- a/spec/features/networks_spec.rb +++ b/spec/features/networks_spec.rb @@ -66,10 +66,10 @@ describe "Networks", :type => :feature do # it "edit network" do # # allow(subject).to receive(:stop_areas).and_return(Array.new(2) { create(:stop_area) }) # visit line_referential_network_path(line_referential, subject) - # click_link "Modifier ce réseau" + # click_link "Editer ce réseau" # fill_in "network_name", :with => "Network Modified" # fill_in "Numéro d'enregistrement", :with => "test-1" - # click_button("Modifier réseau") + # click_button("Editer réseau") # expect(page).to have_content("Network Modified") # end # end diff --git a/spec/features/referentials_spec.rb b/spec/features/referentials_spec.rb index 65f895a9c..39c5adcd5 100644 --- a/spec/features/referentials_spec.rb +++ b/spec/features/referentials_spec.rb @@ -41,7 +41,7 @@ describe "Referentials", :type => :feature do fill_in "Code", :with => "test" fill_in "Point haut/droite de l'emprise par défaut", :with => "0.0, 0.0" fill_in "Point bas/gauche de l'emprise par défaut", :with => "1.0, 1.0" - click_button "Enregistrer" + click_button "Valider" expect(Referential.where(:name => "Test")).not_to be_nil # CREATE SCHEMA diff --git a/spec/features/routes_spec.rb b/spec/features/routes_spec.rb index 0cdeaddb4..36d0e8f87 100644 --- a/spec/features/routes_spec.rb +++ b/spec/features/routes_spec.rb @@ -38,7 +38,7 @@ describe "Routes", :type => :feature do fill_in "route_name", :with => "A to B" # select 'Aller', :from => "route_direction" check('route[wayback]') - click_button("Enregistrer") + click_button("Valider") expect(page).to have_content("A to B") end end diff --git a/spec/features/stop_areas_spec.rb b/spec/features/stop_areas_spec.rb index 9d24ad680..6afb22bc6 100644 --- a/spec/features/stop_areas_spec.rb +++ b/spec/features/stop_areas_spec.rb @@ -65,10 +65,10 @@ describe "StopAreas", :type => :feature do # describe "edit and return to show" do # it "edit stop_area" do # visit stop_area_referential_stop_area_path(stop_area_referential, subject) - # click_link "Modifier cet arrêt" + # click_link "Editer cet arrêt" # fill_in "stop_area_name", :with => "StopArea Modified" # fill_in "Numéro d'enregistrement", :with => "test-1" - # click_button("Modifier arrêt") + # click_button("Editer arrêt") # expect(page).to have_content("StopArea Modified") # end # end diff --git a/spec/features/time_tables_spec.rb b/spec/features/time_tables_spec.rb index de0d33a9d..8e0b62c89 100644 --- a/spec/features/time_tables_spec.rb +++ b/spec/features/time_tables_spec.rb @@ -134,9 +134,9 @@ describe "TimeTables", :type => :feature do describe "edit and return to show" do it "edit time_table" do visit referential_time_table_path(referential, subject) - click_link "Modifier ce calendrier" + click_link "Editer ce calendrier" fill_in "Nom", :with => "TimeTable Modified" - click_button("Modifier calendrier") + click_button("Editer calendrier") expect(page).to have_content("TimeTable Modified") end end diff --git a/spec/features/timebands_spec.rb b/spec/features/timebands_spec.rb index bd1d4b820..fcd14641a 100644 --- a/spec/features/timebands_spec.rb +++ b/spec/features/timebands_spec.rb @@ -44,9 +44,9 @@ describe "Timebands", :type => :feature do describe "edit and return to show" do it "edit timeband" do visit referential_timeband_path(referential, subject) - click_link "Modifier ce créneau horaire" + click_link "Editer ce créneau horaire" fill_in "Titre", :with => "Timeband Modified" - click_button("Modifier créneau horaire") + click_button("Editer créneau horaire") expect(page).to have_content("Timeband Modified") end end diff --git a/spec/features/users/user_edit_spec.rb b/spec/features/users/user_edit_spec.rb index 23a58ecae..4b083a226 100644 --- a/spec/features/users/user_edit_spec.rb +++ b/spec/features/users/user_edit_spec.rb @@ -25,7 +25,7 @@ feature 'User edit', :devise do # visit edit_user_registration_path(user) # fill_in 'user_email', :with => 'newemail@example.com' # fill_in 'user_current_password', :with => user.password - # click_button 'Modifier' + # click_button 'Editer' # txts = [I18n.t( 'devise.registrations.updated'), I18n.t( 'devise.registrations.update_needs_confirmation')] # expect(page).to have_content(/.*#{txts[0]}.*|.*#{txts[1]}.*/) # end diff --git a/spec/features/workbenches_spec.rb b/spec/features/workbenches_spec.rb index 068c382d6..608746e56 100644 --- a/spec/features/workbenches_spec.rb +++ b/spec/features/workbenches_spec.rb @@ -36,7 +36,7 @@ describe 'Workbenches', type: :feature do fill_in "referential[prefix]", with: "test" # Prefix Neptune select workbench.lines.first.id, from: 'referential[metadatas_attributes][0][lines][]' # Lignes - click_button "Enregistrer" + click_button "Valider" expect(page).to have_css("h1", text: "Referential to test creation") end end |
