Commit a1a9a1cf authored by Alfredo Sumaran's avatar Alfredo Sumaran
Browse files

Specs for toggle Whitespaces Changes

parent 66a5d0fd
require 'spec_helper'
feature 'Toggle Whitespace Changes', js: true, feature: true do
let(:merge_request) { create(:merge_request) }
let(:project) { merge_request.source_project }
before do
login_as :admin
visit diffs_namespace_project_merge_request_path(project.namespace, project, merge_request)
end
it 'should have a button to toggle whitespace changes' do
expect(page).to have_content "Hide whitespace changes"
end
describe 'clicking hide whitespace changes button' do
it 'should hide whitespace changes' do
find('a', text: "Hide whitespace changes").click
expect(page).to have_content "Show whitespace changes"
end
end
end
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