Commit 5181b483 authored by Jacques's avatar Jacques

Fix blob refactor qa specs

Fixes the qa specs for the blob refactor
parent 7cb10a1b
...@@ -70,6 +70,25 @@ module QA ...@@ -70,6 +70,25 @@ module QA
expect(page).to have_content(@user2.name) expect(page).to have_content(@user2.name)
expect(page).not_to have_content(@user.name) expect(page).not_to have_content(@user.name)
# Check the files and code owners when refactor_blob_viewer is enabled
Runtime::Feature.enable(:refactor_blob_viewer, project: @project)
@project.visit!
Page::Project::Show.perform do |project_page|
project_page.click_file 'file.txt'
end
expect(page).to have_content(@user.name)
expect(page).not_to have_content(@user2.name)
@project.visit!
Page::Project::Show.perform do |project_page|
project_page.click_file 'README.md'
end
expect(page).to have_content(@user2.name)
expect(page).not_to have_content(@user.name)
end end
end 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