Class mozilla.components.browser.state.action.TranslationsActionTest

39

tests

0

failures

0

ignored

0.202s

duration

100%

successful

Tests

Test Duration Result
GIVEN isOfferTranslate is true WHEN a TranslateAction is dispatched THEN isOfferTranslate should be set to false 0.001s passed
WHEN SetOfferTranslateSettingAction is called then set offerToTranslate 0.007s passed
WHEN UpdateGlobalLanguageSettingAction is called then update languageSettings 0.001s passed
WHEN UpdateOfferTranslateSettingAction is called then set offerToTranslate 0.001s passed
WHEN a FetchTranslationDownloadSize is dispatched THEN translationSize is cleared 0.007s passed
WHEN a ManageLanguageModelsAction is dispatched and successful THEN the browser store is updated to match 0.007s passed
WHEN a OperationRequestedAction is dispatched for FETCH_AUTOMATIC_LANGUAGE_SETTINGS THEN clear languageSettings 0.007s passed
WHEN a OperationRequestedAction is dispatched for FETCH_PAGE_SETTINGS THEN clear pageSettings 0.001s passed
WHEN a OperationRequestedAction is dispatched for FETCH_SUPPORTED_LANGUAGES THEN clear supportLanguages 0.003s passed
WHEN a RemoveNeverTranslateSiteAction is dispatched AND successful THEN update neverTranslateSites 0.001s passed
WHEN a SetEngineSupportAction is dispatched THEN the browser store is updated to match 0.001s passed
WHEN a SetLanguageModelsAction is dispatched and successful THEN the browser store is updated to match 0.008s passed
WHEN a SetLanguageSettingsAction is dispatched THEN the browser store is updated to match 0s passed
WHEN a SetNeverTranslateSitesAction is dispatched AND successful THEN update neverTranslateSites 0.001s passed
WHEN a SetPageSettingsAction is dispatched THEN set pageSettings 0.002s passed
WHEN a SetSupportedLanguagesAction is dispatched AND successful THEN update supportedLanguages 0.001s passed
WHEN a SetTranslateProcessingAction is dispatched THEN set isTranslateProcessing 0.001s passed
WHEN a SetTranslationDownloadSize is dispatched THEN set translationSize is set 0.003s passed
WHEN a TranslateAction is dispatched AND fails THEN update translation processing status 0.001s passed
WHEN a TranslateAction is dispatched AND successful THEN update translation processing status 0.001s passed
WHEN a TranslateExceptionAction is dispatched due to an error THEN update the error condition according to the operation 0.012s passed
WHEN a TranslateExceptionAction is dispatched for FETCH_AUTOMATIC_LANGUAGE_SETTINGS THEN set the error 0.002s passed
WHEN a TranslateExpectedAction is dispatched THEN update translation expected status 0s passed
WHEN a TranslateOfferAction is dispatched THEN update translation expected status 0s passed
WHEN a TranslateRestoreAction is dispatched AND fails THEN update translation processing status 0s passed
WHEN a TranslateRestoreAction is dispatched AND successful THEN update translation processing status 0.002s passed
WHEN a TranslateStateChangeAction is dispatched THEN the isExpectedTranslate status updates accordingly 0.015s passed
WHEN a TranslateStateChangeAction is dispatched THEN the isOfferTranslate status updates accordingly 0.001s passed
WHEN a TranslateStateChangeAction is dispatched THEN the translation status updates accordingly 0.002s passed
WHEN a TranslateStateChangeAction is dispatched THEN the translationError status updates accordingly 0.001s passed
WHEN a TranslateStateChangeAction is dispatched THEN update translation expected status 0.099s passed
WHEN a TranslateSuccessAction is dispatched THEN update the condition according to the operation 0.003s passed
WHEN a UpdatePageSettingAction is dispatched for UPDATE_ALWAYS_OFFER_POPUP THEN set page settings for alwaysOfferPopup 0s passed
WHEN a UpdatePageSettingAction is dispatched for UPDATE_ALWAYS_TRANSLATE_LANGUAGE THEN set page settings for alwaysTranslateLanguage 0s passed
WHEN a UpdatePageSettingAction is dispatched for UPDATE_NEVER_TRANSLATE_LANGUAGE THEN set page settings for alwaysTranslateLanguage 0.001s passed
WHEN a UpdatePageSettingAction is dispatched for UPDATE_NEVER_TRANSLATE_SITE THEN set page settings for neverTranslateSite 0.001s passed
WHEN a UpdatePageSettingAction is dispatched for each option THEN the page setting is consistent 0.006s passed
WHEN an EngineExceptionAction is dispatched THEN the browser store is updated to match 0.001s passed
WHEN an UpdatePageSettingAction is dispatched for UPDATE_ALWAYS_TRANSLATE_LANGUAGE AND UPDATE_ALWAYS_TRANSLATE_LANGUAGE THEN must be opposites of each other or both must be false 0.001s passed