diff --git a/cypress/support/assertions/assertion_constants.js b/cypress/support/assertions/assertion_constants.js new file mode 100644 index 00000000000..f55e7fe77c7 --- /dev/null +++ b/cypress/support/assertions/assertion_constants.js @@ -0,0 +1,6 @@ +export const flashClassMap = { + warning: 'warning', + error: 'danger', + info: 'info', + success: 'success', +}; diff --git a/cypress/support/assertions/expect_alerts.js b/cypress/support/assertions/expect_alerts.js index e811f60b623..ea73136a002 100644 --- a/cypress/support/assertions/expect_alerts.js +++ b/cypress/support/assertions/expect_alerts.js @@ -1,11 +1,5 @@ /* eslint-disable no-undef */ - -const flashClassMap = { - warning: 'warning', - error: 'danger', - info: 'info', - success: 'success', -}; +import { flashClassMap } from './assertion_constants'; /** * Custom Cypress command to validate flash messages.