Skip to content

Commit

Permalink
updating button text (#1726)
Browse files Browse the repository at this point in the history
  • Loading branch information
JaymeeH authored Mar 29, 2024
1 parent 5ba0354 commit 2da1a30
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions app/views/works_wizard/new_submission.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@
<%= render '/works/form_hidden_fields' %>
<hr />
<div class="actions">
<%= link_to "Go Back", root_path, class: "btn btn-secondary" %>
<%= submit_tag "Create New", class: "btn btn-primary wizard-next-button", id: "btn-create-new" %>
<%= link_to "Cancel", root_path, class: "btn btn-secondary" %>
<%= submit_tag "Next", class: "btn btn-primary wizard-next-button", id: "btn-create-new" %>
</div>
<% end %>
</div>
Expand Down
2 changes: 1 addition & 1 deletion spec/system/authz_submitter_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

fill_in "creators[][given_name]", with: FFaker::Name.first_name
fill_in "creators[][family_name]", with: FFaker::Name.last_name
click_on "Create New"
click_on "Next"
fill_in "description", with: FFaker::Lorem.paragraph
select "GNU General Public License", from: "rights_identifiers"
click_on "Curator Controlled"
Expand Down
2 changes: 1 addition & 1 deletion spec/system/authz_super_admin_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

fill_in "creators[][given_name]", with: FFaker::Name.first_name
fill_in "creators[][family_name]", with: FFaker::Name.last_name
click_on "Create New"
click_on "Next"
fill_in "description", with: FFaker::Lorem.paragraph
select "GNU General Public License", from: "rights_identifiers"
click_on "Curator Controlled"
Expand Down
2 changes: 1 addition & 1 deletion spec/system/external_ids_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

fill_in "creators[][given_name]", with: "Sally"
fill_in "creators[][family_name]", with: "Smith"
click_on "Create New"
click_on "Next"
fill_in "description", with: "test description"
select "GNU General Public License", from: "rights_identifiers"
click_on "Save Work"
Expand Down
2 changes: 1 addition & 1 deletion spec/system/pppl_work_create_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
fill_in "title_main", with: title
find("tr:last-child input[name='creators[][given_name]']").set "Samantha"
find("tr:last-child input[name='creators[][family_name]']").set "Abrams"
click_on "Create New"
click_on "Next"
fill_in "description", with: description
select "GNU General Public License", from: "rights_identifiers"
click_on "Additional Metadata"
Expand Down
12 changes: 6 additions & 6 deletions spec/system/work_create_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
expect(page).to have_button("Add me as a Creator", disabled: true)
# make sure an empty creator row does not stop the form submission
click_on "Add Another Creator"
click_on "Create New"
click_on "Next"
expect(Work.all).not_to be_empty
work = Work.last
expect(work.resource.creators.length).to eq(8)
Expand All @@ -96,7 +96,7 @@
visit work_create_new_submission_path

fill_in "title_main", with: ""
click_on "Create New"
click_on "Next"
expect(page).to have_content("Must provide a title")
expect(page).to have_content("Must provide at least one creator")
end
Expand All @@ -111,7 +111,7 @@

find("tr:last-child input[name='creators[][family_name]']").set "Abrams"
click_on "Add Another Creator"
click_on "Create New"
click_on "Next"
expect(page).to have_content("Must provide a given name")
end
end
Expand All @@ -125,7 +125,7 @@

find("tr:last-child input[name='creators[][given_name]']").set "Samantha"
click_on "Add Another Creator"
click_on "Create New"
click_on "Next"
expect(page).to have_content("Must provide a family name")
end
end
Expand Down Expand Up @@ -390,12 +390,12 @@
it "prevents the user from continuing when the readme file is not valid", js: true do
sign_in user
visit work_create_new_submission_path
click_on "Create New"
click_on "Next"
fill_in "title_main", with: title

find("tr:last-child input[name='creators[][given_name]']").set "Samantha"
find("tr:last-child input[name='creators[][family_name]']").set "Abrams"
click_on "Create New"
click_on "Next"

fill_in "description", with: description
click_on "Save Work"
Expand Down
4 changes: 2 additions & 2 deletions spec/system/work_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
fill_in "title_main", with: "Supreme"
fill_in "creators[][given_name]", with: "Sonia"
fill_in "creators[][family_name]", with: "Sotomayor"
click_on "Create New"
click_on "Next"
work = Work.last
expect(work.resource.resource_type).to eq "Dataset"
expect(work.resource.resource_type_general).to eq "Dataset"
Expand All @@ -27,7 +27,7 @@
visit user_path(user)
click_on "Submit New"
fill_in "title_main", with: ""
click_on "Create New"
click_on "Next"
expect(page).to have_content "Must provide a title"
end

Expand Down

0 comments on commit 2da1a30

Please sign in to comment.