shared_examples'displaying details on index page'do|snippet_type|
it"shows correct details of #{snippet_type} including file number"do
shared_examples'displaying details on index page'do|snippet_type,testcase|
it"shows correct details of #{snippet_type} including file number",testcase: testcasedo
send(snippet_type)
Page::Main::Menu.performdo|menu|
menu.go_to_menu_dropdown_option(:snippets_link)
...
...
@@ -73,10 +73,10 @@ module QA
end
end
it_behaves_like'displaying details on index page',:personal_snippet_with_single_file
it_behaves_like'displaying details on index page',:personal_snippet_with_multiple_files
it_behaves_like'displaying details on index page',:project_snippet_with_single_file
it_behaves_like'displaying details on index page',:project_snippet_with_multiple_files
it_behaves_like'displaying details on index page',:personal_snippet_with_single_file,'https://gitlab.com/gitlab-org/gitlab/-/quality/test_cases/347717'
it_behaves_like'displaying details on index page',:personal_snippet_with_multiple_files,'https://gitlab.com/gitlab-org/gitlab/-/quality/test_cases/347720'
it_behaves_like'displaying details on index page',:project_snippet_with_single_file,'https://gitlab.com/gitlab-org/gitlab/-/quality/test_cases/347718'
it_behaves_like'displaying details on index page',:project_snippet_with_multiple_files,'https://gitlab.com/gitlab-org/gitlab/-/quality/test_cases/347719'