expect(byText('DOWN').get()).toBeInTheDocument();
+ // Renders plugins notification
+ expect(ui.pluginsNotification.get()).toBeInTheDocument();
+
// Trigger a status update
jest.mocked(getSystemStatus).mockResolvedValueOnce({ id: '', version: '', status: 'RESTARTING' });
jest.mocked(waitSystemUPStatus).mockResolvedValueOnce({ id: '', version: '', status: 'UP' });
const ui = {
navHeader: byRole('heading', { name: 'layout.settings' }),
pagesList: byLabelText('pages'),
+ pluginsNotification: byText('marketplace.instance_needs_to_be_restarted_to'),
pluginsInstallingList: byLabelText('plugins - installing'),
pluginsUpdatingList: byLabelText('plugins - updating'),
pluginsRemovingList: byLabelText('plugins - removing'),
</NavBarTabs>
</TopBar>
{notifComponent}
- <PendingPluginsActionNotif
- fetchSystemStatus={this.props.fetchSystemStatus}
- pending={pendingPlugins}
- refreshPending={this.props.fetchPendingPlugins}
- systemStatus={this.props.systemStatus}
- />
</>
);
}