Commit 6be0c160 authored by Rémy Coutable's avatar Rémy Coutable

Merge branch '23036-replace-git-blame-spinach-tests-with-rspec-feature-tests' into 'master'

Rewritten spinach git_blame tests to RSpec feature tests

Part of #23036. This MR contains 'git blame' feature tests rewritten in RSpec.
 
See merge request !7197
parents e934043d e6e41478
---
title: Rewrite git blame spinach feature tests to rspec feature tests
merge_request: 7197
author: Lisanne Fellinger
Feature: Project Source Git Blame
Background:
Given I sign in as a user
And I own project "Shop"
Given I visit project source page
Scenario: I blame file
Given I click on ".gitignore" file in repo
And I click Blame button
Then I should see git file blame
class Spinach::Features::ProjectSourceGitBlame < Spinach::FeatureSteps require 'spec_helper'
include SharedAuthentication
include SharedProject
include SharedPaths
step 'I click on ".gitignore" file in repo' do feature 'user checks git blame', feature: true do
click_link ".gitignore" let(:project) { create(:project) }
end let(:user) { create(:user) }
step 'I click Blame button' do before do
click_link 'Blame' project.team << [user, :master]
login_with(user)
visit namespace_project_tree_path(project.namespace, project, project.default_branch)
end end
step 'I should see git file blame' do scenario "can see blame of '.gitignore'" do
click_link ".gitignore"
click_link 'Blame'
expect(page).to have_content "*.rb" expect(page).to have_content "*.rb"
expect(page).to have_content "Dmitriy Zaporozhets" expect(page).to have_content "Dmitriy Zaporozhets"
expect(page).to have_content "Initial commit" expect(page).to have_content "Initial commit"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment