diff --git a/public/custom.css b/public/custom.css
index b63ccd17d..94934fde3 100644
--- a/public/custom.css
+++ b/public/custom.css
@@ -65,7 +65,7 @@
position: -webkit-sticky;
position: sticky;
top: 0;
- z-index: 1000;
+ z-index: 1;
padding: 0;
}
.cmpsr-panel__body .toolbar-pf .btn-link {
@@ -808,4 +808,36 @@ body {
font-style: normal;
font-weight: 700;
text-rendering: optimizeLegibility;
+}
+
+/* form group checkbox alignment fix */
+.pf-c-form__horizontal-group .pf-c-check,
+.cc-c-form__static-text {
+ padding-top: var(--pf-global--spacer--form-element);
+ padding-bottom: var(--pf-global--spacer--form-element);
+}
+
+.pf-c-form__horizontal-group .pf-c-check input[type=checkbox],
+.cc-c-form__static-text input[type=checkbox] {
+ margin-top: 0px;
+}
+
+.pf-c-form__horizontal-group .pf-c-check__label {
+ line-height: var(--pf-global--LineHeight--md);
+}
+
+/* spacing below warning alert in wizard */
+.pf-c-wizard__main-body .pf-c-alert,
+.cc-c-alert__warning {
+ margin-bottom: var(--pf-global--gutter);
+}
+
+/* horizontal group with popover justification fix*/
+.cc-c-popover__horizontal-group {
+ display: flex;
+ justify-content: space-between;
+}
+
+.cc-c-form__required-text {
+ margin-bottom: var(--pf-global--gutter);
}
\ No newline at end of file
diff --git a/test/end-to-end/components/Blueprint.component.js b/test/end-to-end/components/Blueprint.component.js
index af622e5d8..79323b4de 100644
--- a/test/end-to-end/components/Blueprint.component.js
+++ b/test/end-to-end/components/Blueprint.component.js
@@ -21,7 +21,7 @@ class Blueprint {
}
get createImageButton() {
- return $(`${this.containerSelector} button[class="btn btn-default"]`).element();
+ return $(`${this.containerSelector} button[id="create-image-button"]`).element();
}
get moreDropdownMenu() {
diff --git a/test/end-to-end/pages/EditPackages.page.js b/test/end-to-end/pages/EditPackages.page.js
index cf2b5f564..6cd5a193d 100644
--- a/test/end-to-end/pages/EditPackages.page.js
+++ b/test/end-to-end/pages/EditPackages.page.js
@@ -28,7 +28,7 @@ class EditPackagesPage {
}
get createImageButton() {
- return $("span=Create Image").element();
+ return $(`button[id="create-image-button"]`).element();
}
get moreButton() {
diff --git a/test/end-to-end/pages/ViewBlueprint.page.js b/test/end-to-end/pages/ViewBlueprint.page.js
index 547c946d7..38bf26497 100644
--- a/test/end-to-end/pages/ViewBlueprint.page.js
+++ b/test/end-to-end/pages/ViewBlueprint.page.js
@@ -23,7 +23,7 @@ class ViewBlueprintPage {
get createImageButton() {
// cannot use 'span=Create Image' because there're two Create Image buttons
// another one is under Image tab
- return $('.cmpsr-header__actions [id="cmpsr-btn-crt-image"] span').element();
+ return $('.cmpsr-header__actions button[id="create-image-button"]').element();
}
get moreButton() {
diff --git a/test/end-to-end/pages/createImage.page.js b/test/end-to-end/pages/createImage.page.js
index 6b1136f62..77fda6354 100644
--- a/test/end-to-end/pages/createImage.page.js
+++ b/test/end-to-end/pages/createImage.page.js
@@ -1,7 +1,7 @@
// Create Image Page
class CreateImagePage {
constructor() {
- this.containerSelector = '[id="cmpsr-modal-crt-image"]';
+ this.containerSelector = '[id="create-image-upload-wizard"]';
}
loading() {
@@ -9,31 +9,31 @@ class CreateImagePage {
}
get alertMessage() {
- return $(`${this.containerSelector} .alert-warning`).element();
+ return $(`${this.containerSelector} [id="pending-changes-alert"]`).element();
}
get blueprintNameLabel() {
- return $(`${this.containerSelector} .form-control-static`).element();
+ return $(`${this.containerSelector} [id="blueprint-name"]`).element();
}
get selectOption() {
- return $$(`${this.containerSelector} select[id="textInput-modal-markup"] option`);
+ return $$(`${this.containerSelector} select[id="image-type"] option`);
}
get imageTypeSelect() {
- return $('select[id="textInput-modal-markup"]').element();
+ return $('select[id="image-type"]').element();
}
get helpButton() {
- return $(`${this.containerSelector} .pficon-help`).element();
+ return $(`${this.containerSelector} [id="popover-icon"]`).element();
}
get helpMessage() {
- return $('[id="CreateImageInfotip"] .popover-content').element();
+ return $(`[id="popover-help"]`).element();
}
get createButton() {
- return $(`${this.containerSelector} .btn-primary`);
+ return $(`${this.containerSelector} [id="continue-button"]`);
}
get commitAndCreateButton() {
@@ -48,7 +48,7 @@ class CreateImagePage {
get cancelButton() {
return $(this.containerSelector)
- .$("span=Cancel")
+ .$(`button[id="cancel-button"]`)
.element();
}
}
diff --git a/test/end-to-end/specs/editPackages2.test.js b/test/end-to-end/specs/editPackages2.test.js
index b980a8235..c4d3141f6 100644
--- a/test/end-to-end/specs/editPackages2.test.js
+++ b/test/end-to-end/specs/editPackages2.test.js
@@ -295,7 +295,8 @@ describe("Edit Blueprint Page", function() {
it("should show a correct alert message in Create Image dialog", function() {
expect(createImagePage.alertMessage.getText().trim()).to.equal(
- "This blueprint has changes that are not committed. These changes will be committed before the image is created."
+ "Warning alert:\n" +
+ "This blueprint has changes that are not committed. These changes will be committed before the image is created."
);
});
});