-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CP-2000] [Messages] Search results seems to be in random order. (#1408)
Co-authored-by: Oskar Michalkiewicz <[email protected]> Co-authored-by: Daniel Karski <[email protected]> Co-authored-by: Łukasz Kowalczyk <[email protected]> Co-authored-by: Łukasz Kowalczyk <[email protected]>
- Loading branch information
1 parent
7bc1c7b
commit ef62195
Showing
30 changed files
with
384 additions
and
227 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -125,10 +125,6 @@ const onPhoneNumberSelect = jest.fn() | |
const onContactSelect = jest.fn() | ||
const onClose = jest.fn() | ||
|
||
beforeAll(() => { | ||
mockAllIsIntersecting(true) | ||
}) | ||
|
||
describe("Functionality: open/close", () => { | ||
test("Modal is closed when `open` field is equal to `false`", () => { | ||
const { queryByTestId } = render({ | ||
|
@@ -276,6 +272,8 @@ describe("Functionality: contacts list", () => { | |
withPhoneNumberOnly: false, | ||
}) | ||
|
||
mockAllIsIntersecting(true) | ||
|
||
// AUTO DISABLED - fix me if you like :) | ||
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access | ||
const contactListProps = contactSimpleListSpy.mock | ||
|
@@ -284,31 +282,6 @@ describe("Functionality: contacts list", () => { | |
expect(contactListProps.contacts.flat().length).toEqual(5) | ||
expect(contactListProps.contacts.flat()).toMatchInlineSnapshot(` | ||
Array [ | ||
Object { | ||
"email": "[email protected]", | ||
"firstAddressLine": "4929 Pine Garden Lane", | ||
"firstName": "John", | ||
"id": "1", | ||
"lastName": "Doe", | ||
"note": "", | ||
"primaryPhoneNumber": "123 456 789", | ||
"secondAddressLine": "Atlanta, GA, 30339, USA", | ||
"secondaryPhoneNumber": "32 123 44 55", | ||
}, | ||
Object { | ||
"blocked": false, | ||
"email": "[email protected]", | ||
"favourite": false, | ||
"firstAddressLine": "Malczewskiego 3, Warszawa", | ||
"firstName": "Sławomir", | ||
"ice": false, | ||
"id": "2", | ||
"lastName": "Borewicz", | ||
"note": "sapiente rem dignissimos sunt", | ||
"primaryPhoneNumber": "+71 195 069 214", | ||
"secondAddressLine": "", | ||
"secondaryPhoneNumber": "", | ||
}, | ||
Object { | ||
"blocked": false, | ||
"email": "", | ||
|
@@ -337,6 +310,31 @@ describe("Functionality: contacts list", () => { | |
"secondAddressLine": "", | ||
"secondaryPhoneNumber": "", | ||
}, | ||
Object { | ||
"blocked": false, | ||
"email": "[email protected]", | ||
"favourite": false, | ||
"firstAddressLine": "Malczewskiego 3, Warszawa", | ||
"firstName": "Sławomir", | ||
"ice": false, | ||
"id": "2", | ||
"lastName": "Borewicz", | ||
"note": "sapiente rem dignissimos sunt", | ||
"primaryPhoneNumber": "+71 195 069 214", | ||
"secondAddressLine": "", | ||
"secondaryPhoneNumber": "", | ||
}, | ||
Object { | ||
"email": "[email protected]", | ||
"firstAddressLine": "4929 Pine Garden Lane", | ||
"firstName": "John", | ||
"id": "1", | ||
"lastName": "Doe", | ||
"note": "", | ||
"primaryPhoneNumber": "123 456 789", | ||
"secondAddressLine": "Atlanta, GA, 30339, USA", | ||
"secondaryPhoneNumber": "32 123 44 55", | ||
}, | ||
Object { | ||
"blocked": false, | ||
"email": "", | ||
|
@@ -376,31 +374,6 @@ describe("Functionality: contacts list", () => { | |
expect(contactListProps.contacts.flat().length).toEqual(4) | ||
expect(contactListProps.contacts.flat()).toMatchInlineSnapshot(` | ||
Array [ | ||
Object { | ||
"email": "[email protected]", | ||
"firstAddressLine": "4929 Pine Garden Lane", | ||
"firstName": "John", | ||
"id": "1", | ||
"lastName": "Doe", | ||
"note": "", | ||
"primaryPhoneNumber": "123 456 789", | ||
"secondAddressLine": "Atlanta, GA, 30339, USA", | ||
"secondaryPhoneNumber": "32 123 44 55", | ||
}, | ||
Object { | ||
"blocked": false, | ||
"email": "[email protected]", | ||
"favourite": false, | ||
"firstAddressLine": "Malczewskiego 3, Warszawa", | ||
"firstName": "Sławomir", | ||
"ice": false, | ||
"id": "2", | ||
"lastName": "Borewicz", | ||
"note": "sapiente rem dignissimos sunt", | ||
"primaryPhoneNumber": "+71 195 069 214", | ||
"secondAddressLine": "", | ||
"secondaryPhoneNumber": "", | ||
}, | ||
Object { | ||
"blocked": false, | ||
"email": "", | ||
|
@@ -429,6 +402,31 @@ describe("Functionality: contacts list", () => { | |
"secondAddressLine": "", | ||
"secondaryPhoneNumber": "", | ||
}, | ||
Object { | ||
"blocked": false, | ||
"email": "[email protected]", | ||
"favourite": false, | ||
"firstAddressLine": "Malczewskiego 3, Warszawa", | ||
"firstName": "Sławomir", | ||
"ice": false, | ||
"id": "2", | ||
"lastName": "Borewicz", | ||
"note": "sapiente rem dignissimos sunt", | ||
"primaryPhoneNumber": "+71 195 069 214", | ||
"secondAddressLine": "", | ||
"secondaryPhoneNumber": "", | ||
}, | ||
Object { | ||
"email": "[email protected]", | ||
"firstAddressLine": "4929 Pine Garden Lane", | ||
"firstName": "John", | ||
"id": "1", | ||
"lastName": "Doe", | ||
"note": "", | ||
"primaryPhoneNumber": "123 456 789", | ||
"secondAddressLine": "Atlanta, GA, 30339, USA", | ||
"secondaryPhoneNumber": "32 123 44 55", | ||
}, | ||
] | ||
`) | ||
}) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.