Skip to content

Commit

Permalink
fix: make components backward compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtek-krysiak committed Jul 26, 2020
1 parent d20aa49 commit 773341e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions example-app/cypress/integration/pages/create-page.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ context('resources/Profession/actions/new', () => {
.click()
.type(data.content)
cy.get('[data-testid="property-edit-createdDate"] input').type(data.createdDate)
cy.get('[class^="date-picker__Overlay"].visible').click()
cy.get('[data-testid="property-edit-createdDate"] > div > div.visible').click()
cy.get('[data-testid="property-edit-createdDateTime"] input').type(data.createdDateTime)
cy.get('[class^="date-picker__Overlay"].visible').click()
cy.get('[data-testid="property-edit-createdDateTime"] > div > div.visible').click()

cy.get('button[type=submit]').contains('Save').click()

Expand Down
4 changes: 4 additions & 0 deletions src/frontend/bundle-entry.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,9 @@ export default {
env,
...AppComponents,
...Hooks,
// DEPRECATED: this should be removed in the next version
// now it was added here to ensure backwards compatibility
// window.AdminBroDesignSystem is set by design-system bundle
...window.AdminBroDesignSystem,
types,
}

0 comments on commit 773341e

Please sign in to comment.