diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-07-20 18:40:28 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-07-20 18:40:28 +0300 |
commit | b595cb0c1dec83de5bdee18284abe86614bed33b (patch) | |
tree | 8c3d4540f193c5ff98019352f554e921b3a41a72 /spec/features/projects/commits/multi_view_diff_spec.rb | |
parent | 2f9104a328fc8a4bddeaa4627b595166d24671d0 (diff) |
Add latest changes from gitlab-org/gitlab@15-2-stable-eev15.2.0-rc42
Diffstat (limited to 'spec/features/projects/commits/multi_view_diff_spec.rb')
-rw-r--r-- | spec/features/projects/commits/multi_view_diff_spec.rb | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/spec/features/projects/commits/multi_view_diff_spec.rb b/spec/features/projects/commits/multi_view_diff_spec.rb index 282112a3767..5af2e367aed 100644 --- a/spec/features/projects/commits/multi_view_diff_spec.rb +++ b/spec/features/projects/commits/multi_view_diff_spec.rb @@ -46,28 +46,28 @@ RSpec.describe 'Multiple view Diffs', :js do end context 'opening a diff with ipynb' do - it 'loads the rendered diff as hidden' do + it 'loads the raw diff as hidden' do diff = page.find('.diff-file, .file-holder', match: :first) - expect(diff).not_to have_selector '[data-diff-toggle-entity="toHide"]' - expect(diff).to have_selector '[data-diff-toggle-entity="toShow"]' + expect(diff).not_to have_selector '[data-diff-toggle-entity="rawViewer"]' + expect(diff).to have_selector '[data-diff-toggle-entity="renderedViewer"]' - expect(classes_for_element(diff, 'toHide', visible: false)).to include('hidden') - expect(classes_for_element(diff, 'toShow')).not_to include('hidden') + expect(classes_for_element(diff, 'rawViewer', visible: false)).to include('hidden') + expect(classes_for_element(diff, 'renderedViewer')).not_to include('hidden') - expect(classes_for_element(diff, 'toShowBtn')).to include('selected') - expect(classes_for_element(diff, 'toHideBtn')).not_to include('selected') + expect(classes_for_element(diff, 'renderedButton')).to include('selected') + expect(classes_for_element(diff, 'rawButton')).not_to include('selected') end - it 'displays the rendered diff and hides after selection changes' do + it 'displays the raw diff and hides after selection changes' do diff = page.find('.diff-file, .file-holder', match: :first) - diff.find('[data-diff-toggle-entity="toShowBtn"]').click + diff.find('[data-diff-toggle-entity="rawButton"]').click - expect(diff).to have_selector '[data-diff-toggle-entity="toShow"]' - expect(diff).not_to have_selector '[data-diff-toggle-entity="toHide"]' + expect(diff).to have_selector '[data-diff-toggle-entity="rawViewer"]' + expect(diff).not_to have_selector '[data-diff-toggle-entity="renderedViewer"]' - expect(classes_for_element(diff, 'toHideBtn')).not_to include('selected') - expect(classes_for_element(diff, 'toShowBtn')).to include('selected') + expect(classes_for_element(diff, 'renderedButton')).not_to include('selected') + expect(classes_for_element(diff, 'rawButton')).to include('selected') end it 'transforms the diff' do |