Update error message

parent d3ae87b0
...@@ -26,7 +26,7 @@ const ERROR_FETCH_SITE_PROFILES = 'ERROR_FETCH_SITE_PROFILES'; ...@@ -26,7 +26,7 @@ const ERROR_FETCH_SITE_PROFILES = 'ERROR_FETCH_SITE_PROFILES';
const ERROR_MESSAGES = { const ERROR_MESSAGES = {
[ERROR_RUN_SCAN]: s__('OnDemandScans|Could not run the scan. Please try again.'), [ERROR_RUN_SCAN]: s__('OnDemandScans|Could not run the scan. Please try again.'),
[ERROR_FETCH_SITE_PROFILES]: s__( [ERROR_FETCH_SITE_PROFILES]: s__(
'OnDemandScans|Could not fetch site profiles. Please try again.', 'OnDemandScans|Could not fetch site profiles. Please refresh the page, or try again later.',
), ),
}; };
......
...@@ -210,7 +210,9 @@ describe('OnDemandScansApp', () => { ...@@ -210,7 +210,9 @@ describe('OnDemandScansApp', () => {
const alert = findAlert(); const alert = findAlert();
expect(alert.exists()).toBe(true); expect(alert.exists()).toBe(true);
expect(alert.props('dismissible')).toBe(false); expect(alert.props('dismissible')).toBe(false);
expect(alert.text()).toContain('Could not fetch site profiles. Please try again.'); expect(alert.text()).toContain(
'Could not fetch site profiles. Please refresh the page, or try again later.',
);
}); });
}); });
......
...@@ -16655,7 +16655,7 @@ msgstr "" ...@@ -16655,7 +16655,7 @@ msgstr ""
msgid "OnDemandScans|Attached branch is where the scan job runs." msgid "OnDemandScans|Attached branch is where the scan job runs."
msgstr "" msgstr ""
msgid "OnDemandScans|Could not fetch site profiles. Please try again." msgid "OnDemandScans|Could not fetch site profiles. Please refresh the page, or try again later."
msgstr "" msgstr ""
msgid "OnDemandScans|Could not run the scan. Please try again." msgid "OnDemandScans|Could not run the scan. Please try again."
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment