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