Skip to content

Commit

Permalink
Bugfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephan Pohl committed Jan 7, 2020
1 parent 5a98dfe commit a6ed24d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 12 deletions.
15 changes: 5 additions & 10 deletions cypress/support/commands/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,6 @@ Cypress.Commands.add('typeMultiSelectAndCheck', {
// close search results
cy.get(`${subject.selector} ${inputCssSelector}`).type('{esc}');
cy.get(`${subject.selector} .sw-select-result-list`).should('not.exist');
return this;
});

/**
Expand Down Expand Up @@ -261,16 +260,13 @@ Cypress.Commands.add('typeLegacySelectAndCheck', {
// expect the placeholder for an empty select field not be shown and search for the value
cy.get(`${subject.selector} .sw-select__placeholder`).should('not.exist');
cy.get(`${subject.selector} .sw-select__single-selection`).contains(value);
} else {
// in multi selects we can check if the value is a selected item
cy.get(`${subject.selector} .sw-select__selection-item`).contains(value);

return this;
// close search results
cy.get(`${subject.selector} ${inputCssSelector}`).type('{esc}');
}

// in multi selects we can check if the value is a selected item
cy.get(`${subject.selector} .sw-select__selection-item`).contains(value);

// close search results
cy.get(`${subject.selector} ${inputCssSelector}`).type('{esc}');
return this;
});

/**
Expand Down Expand Up @@ -438,7 +434,6 @@ Cypress.Commands.add('openUserActionMenu', () => {
cy.get('.sw-admin-menu__logout-action').should('be.visible');
}
});
return this;
});

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,5 +76,5 @@ class CustomerFixtureService extends AdminFixtureService {
}
}

module.exprots = CustomerFixtureService;
module.exports = CustomerFixtureService;
global.CustomerFixtureService = new CustomerFixtureService();
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@shopware-ag/e2e-testsuite-platform",
"version": "1.1.2",
"version": "1.1.3",
"description": "E2E Testsuite for Shopware 6 using Cypress.js",
"bin": {
"cypress": "node_modules/.bin/cypress"
Expand Down

0 comments on commit a6ed24d

Please sign in to comment.