Class org.mozilla.fenix.ext.AppStateTest

39

tests

0

failures

0

ignored

0.371s

duration

100%

successful

Tests

Test Duration Result
GIVEN a category is selected WHEN getFilteredStories is called THEN no more than the default stories number are returned from the selected category 0s passed
GIVEN a category is selected WHEN getFilteredStoriesCount is called for at most the stories from this category THEN only stories count only from that category are returned 0s passed
GIVEN a category is selected WHEN getFilteredStoriesCount is called for more stories than in this category THEN return only that 0s passed
GIVEN a category is selected and 1 sponsored story is available WHEN getFilteredStories is called THEN only stories from that category and the sponsored story are returned 0.001s passed
GIVEN a content recommendations state update WHEN copying the content recommendations state THEN return the updated state 0.001s passed
GIVEN a limit is specified WHEN filtering the sponsored contents THEN return a list of sponsored contents that does not exceed the limit size 0s passed
GIVEN a list of sponsored stories WHEN filtering them THEN drop the ones already shown for the maximum number of times in flight 0s passed
GIVEN a list of sponsored stories WHEN filtering them THEN drop the ones already shown for the maximum number of times in lifetime 0s passed
GIVEN a list of sponsored stories WHEN filtering them THEN have them ordered by priority 0s passed
GIVEN a list of sponsored stories WHEN filtering them THEN return up to limit of stories asked 0.001s passed
GIVEN content recommendations and 1 sponsored content WHEN getStories is called THEN return a list of stories with sponsored content at position 2 0s passed
GIVEN content recommendations and 1 sponsored story WHEN getStories is called THEN return a list of stories with sponsored stories at position 2 0s passed
GIVEN content recommendations and 2 sponsored contents WHEN getStories is called THEN return a list of stories with sponsored contents at position 2 and 6 0.001s passed
GIVEN content recommendations and 2 sponsored story WHEN getStories is called THEN return a list of stories with sponsored stories at position 2 and 6 0s passed
GIVEN content recommendations and sponsored contents WHEN getStories is called THEN return a list of 9 stories with sponsored contents at position 2 and 9 0.001s passed
GIVEN content recommendations and sponsored stories WHEN combining them THEN show sponsored stories at position 2 and 9 0s passed
GIVEN content recommendations and sponsored stories WHEN getStories is called THEN return a list of 9 stories with sponsored stories at position 2 and 9 0.009s passed
GIVEN content recommendations with no sponsored stories WHEN getStories is called THEN return a list of content recommendations to displayed sorted by the number of impressions 0.001s passed
GIVEN local and remote tabs WHEN checking to show tabs THEN section should be shown 0.318s passed
GIVEN multiple stories of both types WHEN combining them THEN show sponsored stories at position 2 and 8 0.001s passed
GIVEN no category is selected WHEN getFilteredStoriesCount is called THEN return an empty result 0s passed
GIVEN no category is selected and 1 sponsored story available WHEN getFilteredStories is called THEN get stories from the default category combined with the sponsored one 0s passed
GIVEN no category is selected and 2 sponsored stories available WHEN getFilteredStories is called THEN get stories from the default category combined with the sponsored stories 0s passed
GIVEN no category is selected and no sponsored stories are available WHEN getFilteredStories is called THEN no more than the default stories number are returned from the default category 0s passed
GIVEN no category is selected and no sponsored stories are available WHEN getFilteredStories is called THEN only Pocket stories from the default category are returned 0.001s passed
GIVEN no category is selected and sponsored contents are available WHEN getFilteredStories is called THEN return stories from the default category combined with the sponsored contents 0.016s passed
GIVEN old selections of categories which do not exist anymore WHEN getFilteredStories is called THEN ignore not found selections 0s passed
GIVEN only local tabs WHEN checking to show tabs THEN section should be shown 0.004s passed
GIVEN only remote tabs WHEN checking to show tabs THEN section should be shown 0.005s passed
GIVEN recent tabs disabled in settings WHEN checking to show tabs THEN section should not be shown 0.008s passed
GIVEN two categories are selected WHEN getFilteredStories is called THEN only stories from those categories are returned 0s passed
GIVEN two categories are selected WHEN getFilteredStoriesCount is called for an odd number of results THEN there are more by one results from first selected category 0s passed
GIVEN two categories are selected WHEN getFilteredStoriesCount is called for at most the stories count in both THEN only stories counts from those categories are returned 0s passed
GIVEN two categories are selected WHEN getFilteredStoriesCount is called for more results than stories in both THEN only stories counts from those categories are returned 0s passed
GIVEN two categories selected and 1 sponsored story available WHEN getFilteredStories is called THEN only stories from the selected categories and the sponsored story are returned 0s passed
GIVEN two categories selected and 2 sponsored stories available WHEN getFilteredStories is called THEN no more than the default stories number are returned 0.002s passed
GIVEN two categories selected with more than needed stories WHEN getFilteredStories is called THEN the results are sorted in the order of least shown 0s passed
WHEN filtering the sponsored contents THEN return the list of sponsored content excluding entries that have reached flight impressions limit 0.001s passed
WHEN filtering the sponsored contents THEN return the list of sponsored contents sorted by descending priority 0s passed