Test |
Duration |
Result |
GIVEN a list of history highlights and groups WHEN updateState is called THEN emit RecentHistoryChange |
0.593s |
passed |
GIVEN all highlights have metadata WHEN getHistoryHighlights is called THEN return a list of highlights with an inferred last access time |
0.005s |
passed |
GIVEN different groups containing history metadata items with the same url WHEN they are added to store THEN entries are not deduped |
0.013s |
passed |
GIVEN fewer than needed highlights and search groups WHEN getCombined is called THEN the result is sorted by date |
0.001s |
passed |
GIVEN groups containing history metadata items with the same url WHEN they are added to store THEN entries are deduped |
0.011s |
passed |
GIVEN highlight visits also exist in search groups WHEN removeHighlightsAlreadyInGroups is called THEN filter out such highlights |
0.002s |
passed |
GIVEN highlights and search groups WHEN getSortedHistory is called THEN sort descending all items based on the last access time |
0.002s |
passed |
GIVEN highlights don't have a valid title WHEN getSortedHistory is called THEN the url is set as title |
0.009s |
passed |
GIVEN highlights visits exist in search groups WHEN getCombined is called THEN remove the highlights already in groups |
0.001s |
passed |
GIVEN history groups WHEN they are added to store THEN they are sorted descending by last updated timestamp |
0.010s |
passed |
GIVEN history highlights exist as history metadata WHEN they are added to store THEN don't add highlight dupes |
0.013s |
passed |
GIVEN more highlights are newer than search groups WHEN getCombined is called THEN then return an even split then sorted by date |
0s |
passed |
GIVEN more search groups are newer than highlights WHEN getCombined is called THEN then return an even split then sorted by date |
0.001s |
passed |
GIVEN multiple groups exist but no highlights WHEN they are added to store THEN only MAX_RESULTS_TOTAL are sent |
0.011s |
passed |
GIVEN multiple highlights exist but no history groups WHEN they are added to store THEN only MAX_RESULTS_TOTAL are sent |
0.013s |
passed |
GIVEN multiple history highlights and history groups WHEN they are added to store THEN only last accessed are added |
0.019s |
passed |
GIVEN multiple metadata entries WHEN getHistorySearchGroups is called THEN group all entries by their search term |
0s |
passed |
GIVEN multiple metadata entries for the same url WHEN getHistorySearchGroups is called THEN entries are deduped |
0.001s |
passed |
GIVEN multiple metadata entries only for direct accessed pages WHEN getHistorySearchGroups is called THEN return an empty list |
0.001s |
passed |
GIVEN multiple metadata records for the same highlight WHEN getHistoryHighlights is called THEN set the latest access time from multiple available |
0.001s |
passed |
GIVEN no recent visits WHEN feature starts THEN fetch history metadata and highlights then notify store |
0.232s |
passed |
GIVEN not all highlights have metadata WHEN getHistoryHighlights is called THEN set 0 for the highlights with not found last access time |
0.001s |
passed |
WHEN asking for history highlights THEN use a specific query |
0.010s |
passed |