Skip to content
Snippets Groups Projects
Commit 2730fe0d authored by Deepika Guliani's avatar Deepika Guliani :two:
Browse files

Merge branch '404422-follow-up-from-wi-note-action-assign-unassign-to-commentator' into 'master'

Add feature spec for delete note action

See merge request !119302



Merged-by: Deepika Guliani's avatarDeepika Guliani <dguliani@gitlab.com>
Approved-by: default avatarAndrejs Cunskis <acunskis@gitlab.com>
parents 598ad07f 5d5a5ce5
No related branches found
No related tags found
No related merge requests found
Pipeline #897836230 passed
Pipeline: GitLab

#897842069

    ......@@ -71,6 +71,12 @@ def set_comment
    end
    context 'for work item note actions signed in user with developer role' do
    let_it_be(:owner) { create(:user) }
    before do
    project.add_owner(owner)
    end
    it 'shows work item note actions' do
    set_comment
    ......@@ -78,13 +84,15 @@ def set_comment
    wait_for_requests
    page.within(".main-notes-list") do
    page.within('.timeline-entry.note.note-wrapper.note-comment:last-child') do
    expect(page).to have_selector('[data-testid="work-item-note-actions"]')
    find('[data-testid="work-item-note-actions"]', match: :first).click
    find('[data-testid="work-item-note-actions"]').click
    expect(page).to have_selector('[data-testid="copy-link-action"]')
    expect(page).to have_selector('[data-testid="assign-note-action"]')
    expect(page).to have_selector('[data-testid="delete-note-action"]')
    expect(page).to have_selector('[data-testid="edit-work-item-note"]')
    end
    end
    end
    ......@@ -295,7 +303,6 @@ def set_milestone(milestone_dropdown, milestone_text)
    expect(page).to have_selector('[data-testid="work-item-note-actions"]')
    find('[data-testid="work-item-note-actions"]', match: :first).click
    expect(page).to have_selector('[data-testid="copy-link-action"]')
    expect(page).not_to have_selector('[data-testid="assign-note-action"]')
    end
    ......
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Finish editing this message first!
    Please register or to comment