Skip to content

Commit f2e30f3

Browse files
committed
RHCLOUD-33366 Add Maintenance component plus tests and examples
1 parent 0c86cba commit f2e30f3

File tree

27 files changed

+98
-0
lines changed

27 files changed

+98
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import React from 'react';
2+
import Maintenance from '../../packages/module/dist/dynamic/Maintenance';
3+
4+
describe('Maintenance', () => {
5+
it('renders Maintenance', () => {
6+
cy.mount(<Maintenance />)
7+
cy.get('[data-ouia-component-id="Maintenance"]').should('exist');
8+
cy.get('[data-ouia-component-id="Maintenance"]').contains('Maintenance in progress');
9+
cy.get('[data-ouia-component-id="Maintenance-body"]').contains('We are currently undergoing scheduled maintenance and will be unavailable from 10am to 12am UTC (6am-8am EST). For more information please visit status.redhat.com.');
10+
});
11+
});
62.1 KB
Loading
62.4 KB
Loading
60.2 KB
Loading
62.3 KB
Loading
61.7 KB
Loading
62.5 KB
Loading
62.6 KB
Loading
63.1 KB
Loading
63.6 KB
Loading

0 commit comments

Comments
 (0)