-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #313 from fhlavac/nav6
- Loading branch information
Showing
90 changed files
with
1,785 additions
and
1,971 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import React from 'react'; | ||
import { AnsibleSupport } from '@patternfly/react-component-groups/dist/dynamic/AnsibleSupport'; | ||
|
||
describe('AnsibleSupport', () => { | ||
it('renders supported AnsibleSupport', () => { | ||
cy.mount(<AnsibleSupport />) | ||
cy.get('i').should('have.class', 'ansibleSupported-0-2-2'); | ||
}); | ||
it('renders unsupported Ansible', () => { | ||
cy.mount(<AnsibleSupport isSupported={false}/>) | ||
cy.get('i').should('have.class', 'ansibleUnsupported-0-2-3'); | ||
}); | ||
}); |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
import React from 'react'; | ||
import InvalidObject from '../../packages/module/dist/dynamic/InvalidObject'; | ||
import MissingPage from '../../packages/module/dist/dynamic/MissingPage'; | ||
|
||
describe('InvalidObject', () => { | ||
it('renders InvalidObject', () => { | ||
cy.mount(<InvalidObject />) | ||
cy.get('[data-ouia-component-id="InvalidObject"]').should('exist') | ||
cy.get('[data-ouia-component-id="InvalidObject"]').contains('We lost that page'); | ||
cy.get('[data-ouia-component-id="InvalidObject-body"]').contains("Let's find you a new one. Try a new search or return home."); | ||
cy.get('[data-ouia-component-id="InvalidObject-home-button"]').contains('Return to homepage'); | ||
describe('MissingPage', () => { | ||
it('renders MissingPage', () => { | ||
cy.mount(<MissingPage />) | ||
cy.get('[data-ouia-component-id="MissingPage"]').should('exist') | ||
cy.get('[data-ouia-component-id="MissingPage"]').contains('We lost that page'); | ||
cy.get('[data-ouia-component-id="MissingPage-body"]').contains("Let's find you a new one. Try a new search or return home."); | ||
cy.get('[data-ouia-component-id="MissingPage-home-button"]').contains('Return to homepage'); | ||
}); | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import React from 'react'; | ||
import PageHeader from '@patternfly/react-component-groups/dist/dynamic/PageHeader'; | ||
|
||
describe('PageHeader', () => { | ||
it('should render PageHeader title and subtitle', () => { | ||
cy.mount(<PageHeader title='My title' subtitle='This is a subtitle for your page header' />); | ||
cy.get('title').should('exist') | ||
cy.get('[data-ouia-component-id="PageHeader-title"]').should('have.text', 'My title') | ||
cy.get('[data-ouia-component-id="PageHeader-subtitle"]').should('have.text', 'This is a subtitle for your page header') | ||
}) | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
...e/patternfly-docs/content/extensions/component-groups/about-component-groups.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes
6 changes: 0 additions & 6 deletions
6
...fly-docs/content/extensions/component-groups/examples/Ansible/AnsibleSupportedExample.tsx
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
...y-docs/content/extensions/component-groups/examples/Ansible/AnsibleUnsupportedExample.tsx
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
...s/content/extensions/component-groups/examples/AnsibleSupport/AnsibleSupportedExample.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import React from 'react'; | ||
import AnsibleSupport from '@patternfly/react-component-groups/dist/dynamic/AnsibleSupport'; | ||
|
||
export const BasicExample: React.FunctionComponent = () => <AnsibleSupport />; |
4 changes: 4 additions & 0 deletions
4
...content/extensions/component-groups/examples/AnsibleSupport/AnsibleUnsupportedExample.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import React from 'react'; | ||
import AnsibleSupport from '@patternfly/react-component-groups/dist/dynamic/AnsibleSupport'; | ||
|
||
export const BasicExample: React.FunctionComponent = () => <AnsibleSupport isSupported={false} />; |
4 changes: 2 additions & 2 deletions
4
...patternfly-docs/content/extensions/component-groups/examples/Battery/Battery.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...nfly-docs/content/extensions/component-groups/examples/BulkSelect/BulkSelect.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...ly-docs/content/extensions/component-groups/examples/CloseButton/CloseButton.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...nsions/component-groups/examples/ColumnManagementModal/ColumnManagementModal.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.