Class org.mozilla.fenix.wallpapers.WallpapersUseCasesTest

18

tests

0

failures

0

ignored

2.134s

duration

100%

successful

Tests

Test Duration Result
GIVEN a wallpaper has not been selected WHEN invoking initialize use case THEN app store contains default 0.307s passed
GIVEN a wallpaper is selected and there are available wallpapers WHEN invoking initialize use case THEN these are dispatched to the app store 0.035s passed
GIVEN a wallpaper with available text color WHEN it is is selected THEN persist the wallpaper name and text color and dispatch the update 0.954s passed
GIVEN a wallpaper with no text color WHEN it is is selected THEN persist the wallpaper name and missing text color and dispatch the update 0.033s passed
GIVEN available wallpapers WHEN invoking initialize use case THEN available wallpaper thumbnails downloaded 0.050s passed
GIVEN available wallpapers WHEN invoking initialize use case THEN thumbnails downloaded and the app store state is updated to reflect that 0.042s passed
GIVEN the landscape orientation WHEN bitmap is loaded THEN loadWallpaperFromDisk method is called with the correct wallpaper and orientation 0.262s passed
GIVEN the portrait orientation WHEN bitmap is loaded THEN loadWallpaperFromDisk method is called with the correct wallpaper and orientation 0.033s passed
GIVEN thumbnail download fails WHEN invoking initialize use case THEN the app store state is updated to reflect that 0.038s passed
GIVEN wallpaper downloaded WHEN selecting a wallpaper THEN storage updated and app store receives dispatch 0.046s passed
GIVEN wallpaper is not downloaded WHEN selecting a wallpaper and any download fails THEN wallpaper not set and app store receives dispatch 0.044s passed
GIVEN wallpaper is not downloaded WHEN selecting a wallpaper and download succeeds THEN storage updated and app store receives dispatch 0.039s passed
GIVEN wallpapers that are in promotions outside of locale WHEN invoking initialize use case THEN promotional wallpapers are filtered out 0.035s passed
GIVEN wallpapers that expired WHEN invoking initialize use case THEN expired wallpapers are filtered out and cleaned up 0.045s passed
GIVEN wallpapers that expired and an expired one is selected WHEN invoking initialize use case THEN selected wallpaper is not filtered out 0.034s passed
GIVEN wallpapers that expired and an expired one is selected and card colors have not been migrated WHEN invoking initialize use case THEN migrate card colors 0.056s passed
WHEN initializing THEN default wallpaper is included in available wallpapers 0.039s passed
WHEN initializing THEN the default wallpaper is not downloaded 0.042s passed