Class org.mozilla.fenix.ext.AppStateTest

26

tests

0

failures

0

ignored

0.345s

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 0.001s 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 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 0.001s passed
GIVEN a list of sponsored stories WHEN filtering them THEN return up to limit of stories asked 0s passed
GIVEN local and remote tabs WHEN checking to show tabs THEN section should be shown 0.303s passed
GIVEN multiple stories of both types WHEN combining them THEN show sponsored stories at positionn 2 and 8 0s 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 0.001s 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 old selections of categories which do not exist anymore WHEN getFilteredStories is called THEN ignore not found selections 0.001s passed
GIVEN only local tabs WHEN checking to show tabs THEN section should be shown 0.003s passed
GIVEN only remote tabs WHEN checking to show tabs THEN section should be shown 0.004s passed
GIVEN recent tabs disabled in settings WHEN checking to show tabs THEN section should not be shown 0.010s passed
GIVEN two categories are selected WHEN getFilteredStories is called THEN only stories from those categories are returned 0.001s 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 0.001s 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.016s 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 0.001s passed