Welcome to mirror list, hosted at ThFree Co, Russian Federation.

archived_projects.rb « dashboard « steps « features - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 969baf92287c620cfdd74bfdd1f157e6d9046518 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
class Spinach::Features::DashboardArchivedProjects < Spinach::FeatureSteps
  include SharedAuthentication
  include SharedPaths
  include SharedProject

  When 'project "Forum" is archived' do
    project = Project.find_by(name: "Forum")
    project.update_attribute(:archived, true)
  end

  step 'I should see "Shop" project link' do
    page.should have_link "Shop"
  end

  step 'I should not see "Forum" project link' do
    page.should_not have_link "Forum"
  end

  step 'I should see "Forum" project link' do
    page.should have_link "Forum"
  end
end