\ No newline at end of file
diff --git a/spec/system/project_roles_spec.rb b/spec/system/project_roles_spec.rb
index f065dce4..88136cff 100644
--- a/spec/system/project_roles_spec.rb
+++ b/spec/system/project_roles_spec.rb
@@ -22,7 +22,7 @@
it "allows the user fill in only valid users for roles" do
sign_in sponsor_user
visit "/"
- click_on "New Project"
+ click_on "Create new project"
# Data Sponsor is not editable. It can only be the user who is initiating this request.
expect(page.find("#non-editable-data-sponsor").text).to eq sponsor_user.uid
@@ -93,19 +93,19 @@
it "allows Data Sponsors to request a new project" do
sign_in sponsor_user
visit "/"
- click_on "New Project"
+ click_on "Create new project"
expect(page).to have_content "New Project Request"
end
it "allows superusers to request a new project" do
sign_in superuser
visit "/"
- click_on "New Project"
+ click_on "Create new project"
expect(page).to have_content "New Project Request"
end
it "does not give the data manager the New Project button" do
sign_in data_manager
visit "/"
- expect(page).not_to have_content "New Project"
+ expect(page).not_to have_content "Create new project"
end
it "only allows the Data Sponsor to load the New Projects page" do
sign_in data_manager
@@ -115,7 +115,7 @@
it "does not give the sytem admin New Project button" do
sign_in system_admin
visit "/"
- expect(page).not_to have_content "New Project"
+ expect(page).not_to have_content "Create new project"
end
it "does not allow the system administrato to load New Projects page" do
sign_in system_admin
diff --git a/spec/system/project_spec.rb b/spec/system/project_spec.rb
index 648f9064..3bae707c 100644
--- a/spec/system/project_spec.rb
+++ b/spec/system/project_spec.rb
@@ -175,7 +175,7 @@
it "allows the user to create a project" do
sign_in sponsor_user
visit "/"
- click_on "New Project"
+ click_on "Create new project"
expect(page.find("#non-editable-data-sponsor").text).to eq sponsor_user.uid
fill_in "data_manager", with: data_manager.uid
fill_in "ro-user-uid-to-add", with: read_only.uid
@@ -223,7 +223,7 @@
it "does not allow the user to create a project" do
sign_in sponsor_user
visit "/"
- click_on "New Project"
+ click_on "Create new project"
expect(page.find("#non-editable-data-sponsor").text).to eq sponsor_user.uid
fill_in "data_manager", with: data_manager.uid
fill_in "ro-user-uid-to-add", with: read_only.uid
@@ -247,7 +247,7 @@
it "does not allow the user to create a project" do
sign_in sponsor_user
visit "/"
- click_on "New Project"
+ click_on "Create new project"
expect(page.find("#non-editable-data-sponsor").text).to eq sponsor_user.uid
fill_in "data_manager", with: "xxx"
@@ -275,7 +275,7 @@
it "does not allow the user to create a project" do
sign_in sponsor_user
visit "/"
- click_on "New Project"
+ click_on "Create new project"
expect(page.find("#non-editable-data-sponsor").text).to eq sponsor_user.uid
fill_in "data_manager", with: data_manager.uid
fill_in "ro-user-uid-to-add", with: "xxx"
@@ -297,7 +297,7 @@
it "redirects the user back to the dashboard" do
sign_in sponsor_user
visit "/"
- click_on "New Project"
+ click_on "Create new project"
expect(page).to have_content("New Project Request")
click_on "Cancel"
@@ -314,7 +314,7 @@
it "allows the user to create a project" do
sign_in sponsor_user
visit "/"
- click_on "New Project"
+ click_on "Create new project"
# Data Sponsor is automatically populated.
fill_in "data_manager", with: data_manager.uid
fill_in "ro-user-uid-to-add", with: read_only.uid
@@ -340,7 +340,7 @@
it "allows the projects to be created" do
sign_in sponsor_user
visit "/"
- click_on "New Project"
+ click_on "Create new project"
expect(page.find("#non-editable-data-sponsor").text).to eq sponsor_user.uid
fill_in "data_manager", with: data_manager.uid
fill_in "ro-user-uid-to-add", with: read_only.uid
@@ -389,7 +389,7 @@
it "logs the error message, flashes a notification to the end-user, and renders the New Project View" do
sign_in sponsor_user
visit "/"
- click_on "New Project"
+ click_on "Create new project"
expect(page).to be_axe_clean
.according_to(:wcag2a, :wcag2aa, :wcag21a, :wcag21aa, :section508)
.skipping(:'color-contrast')
diff --git a/spec/system/welcome_spec.rb b/spec/system/welcome_spec.rb
index 7ba3a0a8..6dd72b0e 100644
--- a/spec/system/welcome_spec.rb
+++ b/spec/system/welcome_spec.rb
@@ -138,7 +138,7 @@
visit "/"
expect(page).to have_content("Sponsored by Me")
expect(page).to have_content("Recent Activity")
- expect(page).to have_selector(:link_or_button, "New Project")
+ expect(page).to have_selector(:link_or_button, "Create new project")
end
end
end
@@ -151,7 +151,7 @@
visit "/"
expect(page).to have_content("Welcome, #{current_user.given_name}!")
expect(page).not_to have_content "Please log in"
- expect(page).to have_content "New Project"
+ expect(page).to have_content "Create new project"
end
it "shows the system administrator dashboard" do
@@ -206,7 +206,7 @@
visit "/"
expect(page).to have_content("Welcome, #{current_user.given_name}!")
expect(page).not_to have_content "Please log in"
- expect(page).not_to have_content "New Project"
+ expect(page).not_to have_content "Create new project"
end
it "shows the system administrator dashboard" do