Upstream sync
This commit is contained in:
@@ -34,7 +34,7 @@ feature "User managing projects" do
|
||||
project = create(:project, members: user, account: user.primary_account, name: "Avengers", client_name: "Marvel")
|
||||
|
||||
visit projects_path
|
||||
click_on "button"
|
||||
find('button.btn-white').click
|
||||
click_on "Edit"
|
||||
|
||||
it_also "requires a project name" do
|
||||
@@ -103,6 +103,25 @@ feature "User managing projects" do
|
||||
expect(page).not_to have_content("Music Releases")
|
||||
end
|
||||
|
||||
scenario 'searching for a project', js: true do
|
||||
project_1 = create(:project, members: user, account: user.primary_account, name: "America's Greatest TV Show")
|
||||
project_2 = create(:project, members: user, account: user.primary_account, name: "Wild Animals")
|
||||
|
||||
visit projects_path
|
||||
|
||||
expect(page).to have_content("America's Greatest TV Show")
|
||||
expect(page).to have_content("Wild Animals")
|
||||
|
||||
within 'form#search' do
|
||||
fill_in 'Search', with: 'Greatest'
|
||||
find('button.rounded-pill-left').click
|
||||
end
|
||||
|
||||
expect(page).to have_content("America's Greatest TV Show")
|
||||
expect(page).not_to have_content("Wild Animals")
|
||||
expect(page).to have_field('Search', with: 'Greatest')
|
||||
end
|
||||
|
||||
# TODO: What about the welcome page when there are no existing projects?
|
||||
|
||||
context "for a manager" do
|
||||
|
||||
Reference in New Issue
Block a user