Test |
Duration |
Result |
GIVEN a wallpaper has not been selected WHEN invoking initialize use case THEN app store contains default |
0.332s |
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.040s |
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.941s |
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.036s |
passed |
GIVEN available wallpapers WHEN invoking initialize use case THEN available wallpaper thumbnails downloaded |
0.057s |
passed |
GIVEN available wallpapers WHEN invoking initialize use case THEN thumbnails downloaded and the app store state is updated to reflect that |
0.046s |
passed |
GIVEN the landscape orientation WHEN bitmap is loaded THEN loadWallpaperFromDisk method is called with the correct wallpaper and orientation |
0.290s |
passed |
GIVEN the portrait orientation WHEN bitmap is loaded THEN loadWallpaperFromDisk method is called with the correct wallpaper and orientation |
0.036s |
passed |
GIVEN thumbnail download fails WHEN invoking initialize use case THEN the app store state is updated to reflect that |
0.044s |
passed |
GIVEN wallpaper downloaded WHEN selecting a wallpaper THEN storage updated and app store receives dispatch |
0.064s |
passed |
GIVEN wallpaper is not downloaded WHEN selecting a wallpaper and any download fails THEN wallpaper not set and app store receives dispatch |
0.042s |
passed |
GIVEN wallpaper is not downloaded WHEN selecting a wallpaper and download succeeds THEN storage updated and app store receives dispatch |
0.048s |
passed |
GIVEN wallpapers that are in promotions outside of locale WHEN invoking initialize use case THEN promotional wallpapers are filtered out |
0.039s |
passed |
GIVEN wallpapers that expired WHEN invoking initialize use case THEN expired wallpapers are filtered out and cleaned up |
0.058s |
passed |
GIVEN wallpapers that expired and an expired one is selected WHEN invoking initialize use case THEN selected wallpaper is not filtered out |
0.038s |
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.052s |
passed |
WHEN initializing THEN default wallpaper is included in available wallpapers |
0.078s |
passed |
WHEN initializing THEN the default wallpaper is not downloaded |
0.039s |
passed |