Skip to content

Commit

Permalink
NEXT-17235 - update icon names for new icon library
Browse files Browse the repository at this point in the history
  • Loading branch information
jleifeld committed Jun 22, 2022
1 parent c747e3f commit b523c5c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on: push

jobs:
publish:
if: github.ref == 'refs/heads/3.x'
if: github.ref == 'refs/heads/4.x'
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down
12 changes: 6 additions & 6 deletions cypress/support/commands/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,7 @@ Cypress.Commands.add(
(
reloadSelectors = {
reloadButtonSelector:
'.sw-sidebar-navigation-item .icon--default-arrow-360-left',
'.sw-sidebar-navigation-item .icon--regular-undo',
loadingIndicatorSelector: 'sw-data-grid-skeleton',
}
) => {
Expand All @@ -635,7 +635,7 @@ Cypress.Commands.add('openUserActionMenu', () => {
cy.get('.sw-admin-menu__user-actions-toggle').should('be.visible');

cy.get('.sw-admin-menu__user-actions-indicator').then(($btn) => {
if ($btn.hasClass('icon--small-arrow-medium-up')) {
if ($btn.hasClass('icon--regular-chevron-up-xs')) {
cy.get('.sw-admin-menu__user-actions-toggle').click();
cy.get('.sw-admin-menu__logout-action').should('be.visible');
}
Expand Down Expand Up @@ -842,8 +842,8 @@ Cypress.Commands.add('sortAndCheckListingAscViaColumn', (

// Assertions to make sure sorting was applied
cy.get('.sw-data-grid__sort-indicator').should('be.visible');
cy.get('.icon--small-arrow-small-down').should('not.exist');
cy.get('.icon--small-arrow-small-up').should('be.visible');
cy.get('.icon--regular-chevron-down-xxs').should('not.exist');
cy.get('.icon--regular-chevron-up-xxs').should('be.visible');
cy.get(rowZeroSelector).should('be.visible');
cy.contains(rowZeroSelector, firstEntry).should('be.visible');
});
Expand Down Expand Up @@ -883,10 +883,10 @@ Cypress.Commands.add('testListing', ({ searchTerm, sorting = {
let iconClass;
switch (sorting.sortDirection) {
case 'ASC':
iconClass = '.icon--small-arrow-small-up';
iconClass = '.icon--regular-chevron-up-xxs';
break;
case 'DESC':
iconClass = '.icon--small-arrow-small-down';
iconClass = '.icon--regular-chevron-down-xxs';
break;
default:
throw new Error(`${sorting.sortDirection} is not a valid sorting direction`);
Expand Down
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": "3.0.15",
"version": "4.0.0",
"description": "E2E Testsuite for Shopware 6 using Cypress.js",
"keywords": [
"e2e",
Expand Down

0 comments on commit b523c5c

Please sign in to comment.