Skip to content

Commit

Permalink
fix(TasksTable-cy): adjust test to pass in headless mode
Browse files Browse the repository at this point in the history
  • Loading branch information
nLight authored and Daniel Schmidt committed Jan 19, 2018
1 parent 87e37d8 commit 36d0851
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions tests/pages/services/ServiceFormModal-cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ describe("Service Form Modal", function() {
cy.get(".modal-full-screen").should("to.have.length", 1);
});

// Autofocus is currently not supported in cypress, see https://github.com/cypress-io/cypress/issues/1176
it.skip("Should Autofocus on the Service ID input field", function() {
openServiceModal();
openServiceForm();
Expand Down Expand Up @@ -672,6 +673,7 @@ describe("Service Form Modal", function() {
.should("exist");
});

// Autofocus is currently not supported in cypress, see https://github.com/cypress-io/cypress/issues/1176
it.skip(
"Should Autofocus on the first input element of the Artifact",
function() {
Expand Down Expand Up @@ -1371,6 +1373,7 @@ describe("Service Form Modal", function() {
});

it('Should add new set of form fields when "Add Environment Variable" link clicked', function() {
// Autofocus is currently not supported in cypress, see https://github.com/cypress-io/cypress/issues/1176
// Key focused
// cy.get('.form-control[name="env.0.key"]:focus');
// Key
Expand Down Expand Up @@ -1405,6 +1408,7 @@ describe("Service Form Modal", function() {
});

it('Should add new set of form fields when "Add Label" link clicked', function() {
// Autofocus is currently not supported in cypress, see https://github.com/cypress-io/cypress/issues/1176
// Key focused
// cy.get('.form-control[name="labels.0.key"]:focus');
// Key
Expand Down
2 changes: 1 addition & 1 deletion tests/pages/services/TasksTable-cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ describe("Tasks Table", function() {

it("shows directories as well as files", function() {
cy
.get(".page-body-content tbody tr:visible:first")
.get(".page-body-content .table-virtual-list")
.contains("jre1.7.0_76");
});
});
Expand Down

0 comments on commit 36d0851

Please sign in to comment.