Commit 1caa71c0 authored by Takuya Noguchi's avatar Takuya Noguchi

Use the parent element to find elements to remove the child

.detail-page-header-actions is planed to remove from
issuable_header.vue:
https://gitlab.com/gitlab-org/gitlab/-/issues/333068

Changelog: other
EE: true
Signed-off-by: default avatarTakuya Noguchi <takninnovationresearch@gmail.com>
parent 2f7bf850
...@@ -33,7 +33,7 @@ RSpec.describe 'Test Cases', :js do ...@@ -33,7 +33,7 @@ RSpec.describe 'Test Cases', :js do
end end
it 'shows action buttons' do it 'shows action buttons' do
page.within('.test-case-container .detail-page-header-actions') do page.within('.test-case-container .detail-page-header') do
expect(page).to have_selector('.dropdown', visible: false) expect(page).to have_selector('.dropdown', visible: false)
expect(page).to have_button('Archive test case') expect(page).to have_button('Archive test case')
expect(page).to have_link('New test case', href: new_project_quality_test_case_path(project)) expect(page).to have_link('New test case', href: new_project_quality_test_case_path(project))
......
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