Skip to content

Commit

Permalink
Merge pull request #2809 from dcos/revert-2766-weblancaster/fix/DCOS-…
Browse files Browse the repository at this point in the history
…20080-disable-review-and-run-button

DCOS-21564: Revert "fix(createServiceModal): disabled review and run button"
  • Loading branch information
juliangieseke authored Mar 6, 2018
2 parents 187bb71 + d31147a commit d5f18f0
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -785,7 +785,6 @@ class CreateServiceModal extends Component {
{
className: "button-primary flush-vertical",
clickHandler: this.handleServiceReview,
disabled: this.getAllErrors().length > 0,
label: "Review & Run"
}
];
Expand All @@ -796,7 +795,6 @@ class CreateServiceModal extends Component {
{
className: "button-primary flush-vertical",
clickHandler: this.handleServiceReview,
disabled: this.getAllErrors().length > 0,
label: "Review & Run"
}
];
Expand Down
6 changes: 3 additions & 3 deletions system-tests/services/test-apps.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ describe("Services", function() {
// .type('{selectall}0.5');
//
cy.root().getFormGroupInputFor("Memory (MiB) *").type("{selectall}10");
cy.root().getFormGroupInputFor("Command").type(cmdline).blur();
cy.root().getFormGroupInputFor("Command").type(cmdline);

// Click Review and Run
cy
Expand Down Expand Up @@ -119,7 +119,7 @@ describe("Services", function() {
.getFormGroupInputFor("Service ID *")
.type(`{selectall}{rightarrow}${serviceName}`);

cy.root().getFormGroupInputFor("Command").type(cmdline).blur();
cy.root().getFormGroupInputFor("Command").type(cmdline);

// Check JSON view
cy.contains("JSON Editor").click();
Expand Down Expand Up @@ -1166,7 +1166,7 @@ describe("Services", function() {
.contains(".dropdown-select-item-title", "Local Persistent Volume")
.click();
cy.root().getFormGroupInputFor("Size (MiB)").type("128");
cy.root().getFormGroupInputFor("Container Path").type("test").blur();
cy.root().getFormGroupInputFor("Container Path").type("test");

// Click Review and Run
cy
Expand Down
2 changes: 1 addition & 1 deletion system-tests/services/test-external-volumes.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ describe("Services", function() {
.click();
cy.root().getFormGroupInputFor("Name").type(volumeName);
cy.root().getFormGroupInputFor("Size (GiB)").type("1");
cy.root().getFormGroupInputFor("Container Path").type("test").blur();
cy.root().getFormGroupInputFor("Container Path").type("test");

// Click Review and Run
cy.contains("Review & Run").click();
Expand Down
6 changes: 1 addition & 5 deletions system-tests/services/test-pods.js
Original file line number Diff line number Diff line change
Expand Up @@ -514,11 +514,7 @@ describe("Services", function() {

cy.root().getFormGroupInputFor("Container Port").type("8080");

cy
.root()
.getFormGroupInputFor("Service Endpoint Name")
.type("http")
.blur();
cy.root().getFormGroupInputFor("Service Endpoint Name").type("http");

cy
.get("button")
Expand Down
14 changes: 2 additions & 12 deletions tests/pages/services/ServiceFormModal-cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,15 +104,6 @@ describe("Service Form Modal", function() {
.first()
.should("to.have.text", "Networking");
});

it("disable review and run button on error", function() {
openServiceModal();
openServiceJSON();

cy
.get(".modal-full-screen-actions-primary > .button")
.should("be.disabled");
});
});

context("Group level", function() {
Expand Down Expand Up @@ -1454,8 +1445,7 @@ describe("Service Form Modal", function() {
cy
.get('.form-control[name="container.docker.image"]')
.clear()
.type("nginx")
.blur();
.type("nginx");

// Click review and run
cy
Expand Down Expand Up @@ -1697,7 +1687,7 @@ describe("Service Form Modal", function() {
it("Should show network form when clicking on Network Configuration Edit", function() {
cy.get(".menu-tabbed-item").contains("Networking").click();
cy.get(".menu-tabbed-view .button.button-primary-link").first().click();
cy.get('input[name="containers.0.endpoints.0.name"]').type("test").blur();
cy.get('input[name="containers.0.endpoints.0.name"]').type("test");
// Click review and run
cy
.get(".modal-full-screen-actions")
Expand Down

0 comments on commit d5f18f0

Please sign in to comment.