Skip to content
Snippets Groups Projects
Unverified Commit c3a1af61 authored by Luke "Jared" Bennett's avatar Luke "Jared" Bennett
Browse files

Copied original whitespace button test, ready to add to compare diffs

parent 9b7fd748
No related branches found
No related tags found
No related merge requests found
require 'spec_helper'
feature 'Toggle Whitespace Changes', js: true, feature: true do
before do
login_as :admin
# something = create(:something)
# project = something.something_project
# visit diffs_namespace_project_something_path(project.namespace, project, something)
end
it 'has a button to toggle whitespace changes' do
expect(page).to have_content 'Hide whitespace changes'
end
describe 'clicking "Hide whitespace changes" button' do
it 'toggles the "Hide whitespace changes" button' do
click_link 'Hide whitespace changes'
expect(page).to have_content 'Show whitespace changes'
end
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment