mirror of
https://github.com/ansible/awx.git
synced 2026-02-26 15:36:04 -03:30
Fix existing test failures
This commit is contained in:
@@ -11,6 +11,7 @@ describe('<Notifications />', () => {
|
||||
onReadSuccess={() => {}}
|
||||
onCreateError={() => {}}
|
||||
onCreateSuccess={() => {}}
|
||||
canToggleNotifications
|
||||
/>
|
||||
);
|
||||
});
|
||||
@@ -24,6 +25,7 @@ describe('<Notifications />', () => {
|
||||
onReadSuccess={() => {}}
|
||||
onCreateError={() => {}}
|
||||
onCreateSuccess={() => {}}
|
||||
canToggleNotifications
|
||||
/>
|
||||
);
|
||||
expect(spy).toHaveBeenCalled();
|
||||
@@ -38,6 +40,7 @@ describe('<Notifications />', () => {
|
||||
onReadSuccess={() => {}}
|
||||
onCreateError={() => {}}
|
||||
onCreateSuccess={() => {}}
|
||||
canToggleNotifications
|
||||
/>
|
||||
).find('Notifications');
|
||||
wrapper.instance().toggleNotification(1, true, 'success');
|
||||
@@ -56,6 +59,7 @@ describe('<Notifications />', () => {
|
||||
onReadSuccess={() => {}}
|
||||
onCreateError={() => {}}
|
||||
onCreateSuccess={onCreateSuccess}
|
||||
canToggleNotifications
|
||||
/>
|
||||
).find('Notifications');
|
||||
wrapper.setState({ successTemplateIds: [44] });
|
||||
@@ -76,6 +80,7 @@ describe('<Notifications />', () => {
|
||||
onReadSuccess={() => {}}
|
||||
onCreateError={() => {}}
|
||||
onCreateSuccess={() => {}}
|
||||
canToggleNotifications
|
||||
/>
|
||||
).find('Notifications');
|
||||
wrapper.instance().toggleNotification(1, true, 'error');
|
||||
@@ -94,6 +99,7 @@ describe('<Notifications />', () => {
|
||||
onReadSuccess={() => {}}
|
||||
onCreateError={onCreateError}
|
||||
onCreateSuccess={() => {}}
|
||||
canToggleNotifications
|
||||
/>
|
||||
).find('Notifications');
|
||||
wrapper.setState({ errorTemplateIds: [44] });
|
||||
@@ -144,6 +150,7 @@ describe('<Notifications />', () => {
|
||||
onReadSuccess={onReadSuccess}
|
||||
onCreateError={() => {}}
|
||||
onCreateSuccess={() => {}}
|
||||
canToggleNotifications
|
||||
/>
|
||||
).find('Notifications');
|
||||
wrapper.instance().updateUrl = jest.fn();
|
||||
|
||||
@@ -20,6 +20,7 @@ describe('<NotificationListItem />', () => {
|
||||
toggleNotification={toggleNotification}
|
||||
detailUrl="/foo"
|
||||
notificationType="slack"
|
||||
canToggleNotifications
|
||||
/>
|
||||
);
|
||||
expect(wrapper.length).toBe(1);
|
||||
@@ -33,6 +34,7 @@ describe('<NotificationListItem />', () => {
|
||||
toggleNotification={toggleNotification}
|
||||
detailUrl="/foo"
|
||||
notificationType="slack"
|
||||
canToggleNotifications
|
||||
/>
|
||||
);
|
||||
wrapper.find('Switch').first().find('input').simulate('change');
|
||||
@@ -47,6 +49,7 @@ describe('<NotificationListItem />', () => {
|
||||
toggleNotification={toggleNotification}
|
||||
detailUrl="/foo"
|
||||
notificationType="slack"
|
||||
canToggleNotifications
|
||||
/>
|
||||
);
|
||||
wrapper.find('Switch').first().find('input').simulate('change');
|
||||
@@ -61,6 +64,7 @@ describe('<NotificationListItem />', () => {
|
||||
toggleNotification={toggleNotification}
|
||||
detailUrl="/foo"
|
||||
notificationType="slack"
|
||||
canToggleNotifications
|
||||
/>
|
||||
);
|
||||
wrapper.find('Switch').at(1).find('input').simulate('change');
|
||||
@@ -75,6 +79,7 @@ describe('<NotificationListItem />', () => {
|
||||
toggleNotification={toggleNotification}
|
||||
detailUrl="/foo"
|
||||
notificationType="slack"
|
||||
canToggleNotifications
|
||||
/>
|
||||
);
|
||||
wrapper.find('Switch').at(1).find('input').simulate('change');
|
||||
|
||||
Reference in New Issue
Block a user