BigW Consortium Gitlab

archived_projects.rb 670 Bytes
Newer Older
1
class Spinach::Features::DashboardArchivedProjects < Spinach::FeatureSteps
2 3 4 5 6
  include SharedAuthentication
  include SharedPaths
  include SharedProject

  When 'project "Forum" is archived' do
skv committed
7
    project = Project.find_by(name: "Forum")
8 9 10
    project.update_attribute(:archived, true)
  end

11
  step 'I should see "Shop" project link' do
12
    expect(page).to have_link "Shop"
13 14
  end

15
  step 'I should not see "Forum" project link' do
16
    expect(page).not_to have_link "Forum"
17 18
  end

19
  step 'I should see "Forum" project link' do
20
    expect(page).to have_link "Forum"
21
  end
22 23 24 25

  step 'I click "Show archived projects" link' do
    click_link "Show archived projects"
  end
26
end