Skip to content

Commit

Permalink
[OP#48106] use same component as project tab for searching in smart p…
Browse files Browse the repository at this point in the history
…icker (#448)

* reuse component

Signed-off-by: Swikriti Tripathi <swikriti808@gmail.com>

reuse

Signed-off-by: Swikriti Tripathi <swikriti808@gmail.com>

emit event

Signed-off-by: Swikriti Tripathi <swikriti808@gmail.com>

add op icon vue

Signed-off-by: Swikriti Tripathi <swikriti808@gmail.com>

* fix failing tests

Signed-off-by: Swikriti Tripathi <swikriti808@gmail.com>

* check for access token

Signed-off-by: Swikriti Tripathi <swikriti808@gmail.com>

* add unit test

Signed-off-by: Swikriti Tripathi <swikriti808@gmail.com>

* address review

Signed-off-by: Swikriti Tripathi <swikriti808@gmail.com>

---------

Signed-off-by: Swikriti Tripathi <swikriti808@gmail.com>
  • Loading branch information
SwikritiT committed Aug 21, 2023
1 parent 4117dd0 commit 133ab88
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/jest/components/tab/SearchInput.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,11 @@ describe('SearchInput.vue', () => {
await ncSelectItem.trigger('click')
const savedEvent = wrapper.emitted('submit')
expect(savedEvent).toHaveLength(1)
<<<<<<< HEAD
expect(savedEvent[0][0]).toEqual('https://openproject.com/wp/999')
=======
expect(savedEvent[0][0]).toEqual('https://openproject.com/projects/1/work_packages/999')
>>>>>>> 40efb74 ([OP#48106] use same component as project tab for searching in smart picker (#448))
})

it('should not send a request to link file to workpackage', async () => {
Expand Down

0 comments on commit 133ab88

Please sign in to comment.