Update to Patternfly 4.115.2 (latest release) (#737)

* update to latest PF

* fix tests
This commit is contained in:
mfrances17 2021-07-02 07:45:08 -04:00 committed by GitHub
parent d327d64b7f
commit 5c3c1bbb46
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 371 additions and 272 deletions

View file

@ -27,9 +27,9 @@
"start:cypress-tests": "cypress run"
},
"dependencies": {
"@patternfly/patternfly": "^4.108.2",
"@patternfly/react-core": "4.128.2",
"@patternfly/react-icons": "4.10.11",
"@patternfly/patternfly": "^4.115.2",
"@patternfly/react-core": "4.135.0",
"@patternfly/react-icons": "4.11.0",
"@patternfly/react-table": "4.29.0",
"file-saver": "^2.0.5",
"i18next": "^20.3.1",

View file

@ -114,6 +114,9 @@ exports[`<MapperDialog/> should have disabled add button when nothing is selecte
>
<p
class=""
data-ouia-component-id="OUIA-Generated-Text-1"
data-ouia-component-type="PF4/Text"
data-ouia-safe="true"
data-pf-content="true"
>
predefinedMappingDescription
@ -1156,6 +1159,13 @@ exports[`<MapperDialog/> should have disabled add button when nothing is selecte
className=""
onClick={[Function]}
variant="plain"
>
<ButtonBase
aria-label="Close"
className=""
innerRef={null}
onClick={[Function]}
variant="plain"
>
<button
aria-disabled={false}
@ -1194,6 +1204,7 @@ exports[`<MapperDialog/> should have disabled add button when nothing is selecte
</svg>
</TimesIcon>
</button>
</ButtonBase>
</Button>
</ModalBoxCloseButton>
<ModalBoxHeader
@ -1235,6 +1246,9 @@ exports[`<MapperDialog/> should have disabled add button when nothing is selecte
<Text>
<p
className=""
data-ouia-component-id="OUIA-Generated-Text-1"
data-ouia-component-type="PF4/Text"
data-ouia-safe={true}
data-pf-content={true}
>
predefinedMappingDescription
@ -20380,6 +20394,12 @@ exports[`<MapperDialog/> should have disabled add button when nothing is selecte
isDisabled={true}
key="confirm"
onClick={[Function]}
>
<ButtonBase
id="modal-confirm"
innerRef={null}
isDisabled={true}
onClick={[Function]}
>
<button
aria-disabled={true}
@ -20397,12 +20417,19 @@ exports[`<MapperDialog/> should have disabled add button when nothing is selecte
>
add
</button>
</ButtonBase>
</Button>
<Button
id="modal-cancel"
key="cancel"
onClick={[Function]}
variant="link"
>
<ButtonBase
id="modal-cancel"
innerRef={null}
onClick={[Function]}
variant="link"
>
<button
aria-disabled={false}
@ -20419,6 +20446,7 @@ exports[`<MapperDialog/> should have disabled add button when nothing is selecte
>
cancel
</button>
</ButtonBase>
</Button>
</footer>
</ModalBoxFooter>
@ -20435,6 +20463,11 @@ exports[`<MapperDialog/> should have disabled add button when nothing is selecte
<Button
id="open"
onClick={[Function]}
>
<ButtonBase
id="open"
innerRef={null}
onClick={[Function]}
>
<button
aria-disabled={false}
@ -20451,6 +20484,7 @@ exports[`<MapperDialog/> should have disabled add button when nothing is selecte
>
Hide
</button>
</ButtonBase>
</Button>
</Test>
`;
@ -20550,6 +20584,9 @@ exports[`<MapperDialog/> should return selected protocol mapping type on click 1
>
<p
class=""
data-ouia-component-id="OUIA-Generated-Text-3"
data-ouia-component-type="PF4/Text"
data-ouia-safe="true"
data-pf-content="true"
>
predefinedMappingDescription
@ -21014,6 +21051,13 @@ exports[`<MapperDialog/> should return selected protocol mapping type on click 1
className=""
onClick={[Function]}
variant="plain"
>
<ButtonBase
aria-label="Close"
className=""
innerRef={null}
onClick={[Function]}
variant="plain"
>
<button
aria-disabled={false}
@ -21052,6 +21096,7 @@ exports[`<MapperDialog/> should return selected protocol mapping type on click 1
</svg>
</TimesIcon>
</button>
</ButtonBase>
</Button>
</ModalBoxCloseButton>
<ModalBoxHeader
@ -21093,6 +21138,9 @@ exports[`<MapperDialog/> should return selected protocol mapping type on click 1
<Text>
<p
className=""
data-ouia-component-id="OUIA-Generated-Text-3"
data-ouia-component-type="PF4/Text"
data-ouia-safe={true}
data-pf-content={true}
>
predefinedMappingDescription
@ -22137,6 +22185,11 @@ exports[`<MapperDialog/> should return selected protocol mapping type on click 1
<Button
id="open"
onClick={[Function]}
>
<ButtonBase
id="open"
innerRef={null}
onClick={[Function]}
>
<button
aria-disabled={false}
@ -22153,6 +22206,7 @@ exports[`<MapperDialog/> should return selected protocol mapping type on click 1
>
Hide
</button>
</ButtonBase>
</Button>
</Test>
`;

View file

@ -31,6 +31,10 @@ exports[`remove alert after timeout: cleared alert 1`] = `
</AlertPanel>
<Button
onClick={[Function]}
>
<ButtonBase
innerRef={null}
onClick={[Function]}
>
<button
aria-disabled={false}
@ -46,6 +50,7 @@ exports[`remove alert after timeout: cleared alert 1`] = `
>
Add
</button>
</ButtonBase>
</Button>
</AlertProvider>
</WithButton>
@ -82,6 +87,10 @@ exports[`remove alert after timeout: with alert 1`] = `
</AlertPanel>
<Button
onClick={[Function]}
>
<ButtonBase
innerRef={null}
onClick={[Function]}
>
<button
aria-disabled={false}
@ -97,6 +106,7 @@ exports[`remove alert after timeout: with alert 1`] = `
>
Add
</button>
</ButtonBase>
</Button>
</AlertProvider>
</WithButton>

View file

@ -239,6 +239,13 @@ exports[`Confirmation dialog renders simple confirm dialog 1`] = `
className=""
onClick={[Function]}
variant="plain"
>
<ButtonBase
aria-label="Close"
className=""
innerRef={null}
onClick={[Function]}
variant="plain"
>
<button
aria-disabled={false}
@ -277,6 +284,7 @@ exports[`Confirmation dialog renders simple confirm dialog 1`] = `
</svg>
</TimesIcon>
</button>
</ButtonBase>
</Button>
</ModalBoxCloseButton>
<ModalBoxHeader
@ -324,6 +332,13 @@ exports[`Confirmation dialog renders simple confirm dialog 1`] = `
key="confirm"
onClick={[Function]}
variant="primary"
>
<ButtonBase
data-testid="modalConfirm"
id="modal-confirm"
innerRef={null}
onClick={[Function]}
variant="primary"
>
<button
aria-disabled={false}
@ -341,12 +356,19 @@ exports[`Confirmation dialog renders simple confirm dialog 1`] = `
>
Delete
</button>
</ButtonBase>
</Button>
<Button
id="modal-cancel"
key="cancel"
onClick={[Function]}
variant="link"
>
<ButtonBase
id="modal-cancel"
innerRef={null}
onClick={[Function]}
variant="link"
>
<button
aria-disabled={false}
@ -363,6 +385,7 @@ exports[`Confirmation dialog renders simple confirm dialog 1`] = `
>
cancel
</button>
</ButtonBase>
</Button>
</footer>
</ModalBoxFooter>

View file

@ -152,6 +152,13 @@ exports[`<JsonFileUpload /> render 1`] = `
key=".1"
onClick={[Function]}
variant="control"
>
<ButtonBase
id="test-browse-button"
innerRef={null}
isDisabled={false}
onClick={[Function]}
variant="control"
>
<button
aria-disabled={false}
@ -168,12 +175,19 @@ exports[`<JsonFileUpload /> render 1`] = `
>
Browse...
</button>
</ButtonBase>
</Button>
<Button
isDisabled={true}
key=".2"
onClick={[Function]}
variant="control"
>
<ButtonBase
innerRef={null}
isDisabled={true}
onClick={[Function]}
variant="control"
>
<button
aria-disabled={true}
@ -190,6 +204,7 @@ exports[`<JsonFileUpload /> render 1`] = `
>
Clear
</button>
</ButtonBase>
</Button>
</div>
</InputGroup>
@ -426,6 +441,13 @@ exports[`<JsonFileUpload /> upload file 1`] = `
key=".1"
onClick={[Function]}
variant="control"
>
<ButtonBase
id="upload-browse-button"
innerRef={null}
isDisabled={false}
onClick={[Function]}
variant="control"
>
<button
aria-disabled={false}
@ -442,12 +464,19 @@ exports[`<JsonFileUpload /> upload file 1`] = `
>
Browse...
</button>
</ButtonBase>
</Button>
<Button
isDisabled={true}
key=".2"
onClick={[Function]}
variant="control"
>
<ButtonBase
innerRef={null}
isDisabled={true}
onClick={[Function]}
variant="control"
>
<button
aria-disabled={true}
@ -464,6 +493,7 @@ exports[`<JsonFileUpload /> upload file 1`] = `
>
Clear
</button>
</ButtonBase>
</Button>
</div>
</InputGroup>

View file

@ -3162,25 +3162,12 @@
dependencies:
mkdirp "^1.0.4"
"@patternfly/patternfly@^4.108.2":
version "4.108.2"
resolved "https://registry.yarnpkg.com/@patternfly/patternfly/-/patternfly-4.108.2.tgz#b6686b9865fd5d4233a15bdf04cc53bded5a8ccc"
integrity sha512-z0VB+1CXcH+eoClYQABwapX5FURSvm1nPr6asLWwg/Z4Wuxs0RjZpC6Gb+KRm8nGQwSAcMKZY1jLfPqVnznQnw==
"@patternfly/patternfly@^4.115.2":
version "4.115.2"
resolved "https://registry.yarnpkg.com/@patternfly/patternfly/-/patternfly-4.115.2.tgz#200111d52fe07d1380371530304bad9edf45de51"
integrity sha512-7hbJ4pRmj+rlXclD2F/UwceO6fS+9flGsgHc4eUc7NyTN2GXl6PLcqrjE2CtiKEPV90+KwsGQGJXZj8bz9HweA==
"@patternfly/react-core@4.128.2":
version "4.128.2"
resolved "https://registry.yarnpkg.com/@patternfly/react-core/-/react-core-4.128.2.tgz#dd0c218bc75a32ee41c69e3d51bead6b157c4aae"
integrity sha512-EhrxE3+V7AYVhbERrcRVH7oY6TeVRqqzaRx8HXWnyn/hxE2rTzhhaLHyjotxk9mGYmIYtMuMebBHFbX0g+6Ymg==
dependencies:
"@patternfly/react-icons" "^4.10.11"
"@patternfly/react-styles" "^4.10.11"
"@patternfly/react-tokens" "^4.11.12"
focus-trap "6.2.2"
react-dropzone "9.0.0"
tippy.js "5.1.2"
tslib "1.13.0"
"@patternfly/react-core@^4.135.0":
"@patternfly/react-core@4.135.0", "@patternfly/react-core@^4.135.0":
version "4.135.0"
resolved "https://registry.yarnpkg.com/@patternfly/react-core/-/react-core-4.135.0.tgz#b64ad4da10a8814926e28fad727bc7690cd60e66"
integrity sha512-DZcONUGOR7Znd6BsUJ4L+KrrnIpyjUvh3JNcYiHW3loytxShCGcx+a04QjOOcZm+MtFhkgs/t51yiC5IP12abA==
@ -3193,17 +3180,12 @@
tippy.js "5.1.2"
tslib "1.13.0"
"@patternfly/react-icons@4.10.11":
version "4.10.11"
resolved "https://registry.yarnpkg.com/@patternfly/react-icons/-/react-icons-4.10.11.tgz#9bed483fc37c8b795b3fb98c17ede00eef775857"
integrity sha512-Qyxwvghb9HZB2do3UVw4EzJSvqWaw/AEw6mFzqshZiIm2oPrL4NkvavwDt5WRicz5sbyWTZluB4grOj33PEpww==
"@patternfly/react-icons@^4.10.11", "@patternfly/react-icons@^4.11.0":
"@patternfly/react-icons@4.11.0", "@patternfly/react-icons@^4.11.0":
version "4.11.0"
resolved "https://registry.yarnpkg.com/@patternfly/react-icons/-/react-icons-4.11.0.tgz#26790eeff22dc3204aa8cd094470f0a2f915634a"
integrity sha512-WsIX34bO9rhVRmPG0jlV3GoFGfYgPC64TscNV0lxQosiVRnYIA6Z3nBSArtJsxo5Yn6c63glIefC/YTy6D/ZYg==
"@patternfly/react-styles@^4.10.11", "@patternfly/react-styles@^4.11.0":
"@patternfly/react-styles@^4.11.0":
version "4.11.0"
resolved "https://registry.yarnpkg.com/@patternfly/react-styles/-/react-styles-4.11.0.tgz#0068dcb18e1343242f93fa6024dcc077acd57fb9"
integrity sha512-4eIqTwGI4mjt9DMqX6hnan4eRS+3LUWNaneTEJdmk+flKxtAE/O/OmQHvH4GetDnlSbyfATcA0VFbVtR0aRJAg==
@ -3220,7 +3202,7 @@
lodash "^4.17.19"
tslib "1.13.0"
"@patternfly/react-tokens@^4.11.12", "@patternfly/react-tokens@^4.12.0":
"@patternfly/react-tokens@^4.12.0":
version "4.12.0"
resolved "https://registry.yarnpkg.com/@patternfly/react-tokens/-/react-tokens-4.12.0.tgz#2973c7f08a2f35997a0054bbf3c886b3c5c68822"
integrity sha512-Oj+GxqTtx0Yu9IDCTibZLQnpcKp58JneNKEFQkJ29WJydhPG4j6oFFElkK+ub+Ft/f9B1Ky1SsfR9eabo6IykQ==