Skip to content

Commit

Permalink
fix: update client tests for after merging scopes (#8066)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nil20 authored Nov 26, 2024
1 parent 95f061d commit 1b229d9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 14 deletions.
9 changes: 2 additions & 7 deletions packages/client/src/views/RecordAudit/ActionMenu.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,14 +133,9 @@ describe('View action', () => {
{ store, history }
)

const { status, node } = actionStatus(component, [ACTION.VIEW_DECLARATION])
expect(status).toBe(ACTION_STATUS.ENABLED)

node?.simulate('click')
const { status } = actionStatus(component, [ACTION.VIEW_DECLARATION])

expect(window.location.href).toContain(
defaultDeclaration.id + '/viewRecord'
)
expect(status).toBe(ACTION_STATUS.HIDDEN)
})

it('In progress', async () => {
Expand Down
14 changes: 7 additions & 7 deletions packages/client/src/views/SearchResult/SearchResult.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ describe('SearchResult tests', () => {
query: SEARCH_EVENTS,
variables: {
advancedSearchParameters: {
declarationLocationId: '2a83cf14-b959-47f4-8097-f75a75d1867f',
declarationLocationId: '',
trackingId: '',
nationalId: '',
registrationNumber: '',
Expand Down Expand Up @@ -334,7 +334,7 @@ describe('SearchResult tests', () => {
nationalId: '',
registrationNumber: '',
contactNumber: '+8801622688232',
declarationLocationId: '1234567s2323289',
declarationLocationId: '',
contactEmail: ''
},
sort: 'DESC'
Expand Down Expand Up @@ -404,7 +404,7 @@ describe('SearchResult tests', () => {
query: SEARCH_EVENTS,
variables: {
advancedSearchParameters: {
declarationLocationId: '2a83cf14-b959-47f4-8097-f75a75d1867f',
declarationLocationId: '',
trackingId: 'DW0UTHR',
nationalId: '',
registrationNumber: '',
Expand Down Expand Up @@ -498,7 +498,7 @@ describe('SearchResult tests', () => {
query: SEARCH_EVENTS,
variables: {
advancedSearchParameters: {
declarationLocationId: '2a83cf14-b959-47f4-8097-f75a75d1867f',
declarationLocationId: '',
trackingId: 'DW0UTHR',
nationalId: '',
registrationNumber: '',
Expand Down Expand Up @@ -600,7 +600,7 @@ describe('SearchResult tests', () => {
query: SEARCH_EVENTS,
variables: {
advancedSearchParameters: {
declarationLocationId: '2a83cf14-b959-47f4-8097-f75a75d1867f',
declarationLocationId: '',
trackingId: 'DW0UTHR',
nationalId: '',
registrationNumber: '',
Expand Down Expand Up @@ -706,7 +706,7 @@ describe('SearchResult downloadButton tests', () => {
query: SEARCH_EVENTS,
variables: {
advancedSearchParameters: {
declarationLocationId: '2a83cf14-b959-47f4-8097-f75a75d1867f',
declarationLocationId: '',
trackingId: 'DW0UTHR',
nationalId: '',
registrationNumber: '',
Expand Down Expand Up @@ -803,7 +803,7 @@ describe('SearchResult downloadButton tests', () => {
query: SEARCH_EVENTS,
variables: {
advancedSearchParameters: {
declarationLocationId: '2a83cf14-b959-47f4-8097-f75a75d1867f',
declarationLocationId: '',
trackingId: 'DW0UTHR',
nationalId: '',
registrationNumber: '',
Expand Down

0 comments on commit 1b229d9

Please sign in to comment.