Skip to content

Commit e75dbf8

Browse files
Moved flash message type object to a common constants file for reuse
1 parent e157b37 commit e75dbf8

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
export const flashClassMap = {
2+
warning: 'warning',
3+
error: 'danger',
4+
info: 'info',
5+
success: 'success',
6+
};

cypress/support/assertions/expect_alerts.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
/* eslint-disable no-undef */
2-
3-
const flashClassMap = {
4-
warning: 'warning',
5-
error: 'danger',
6-
info: 'info',
7-
success: 'success',
8-
};
2+
import { flashClassMap } from './assertion_constants';
93

104
/**
115
* Custom Cypress command to validate flash messages.

0 commit comments

Comments
 (0)