feat: #1342 - Window level tab (#1429)

* WindowLevel preset code changes

* Remove localStorage code as its already being saved and some small refactor on reducer/action

* Creating unit tests for preferences reducer

* Fix cypress after class naming change

* Make hidden false as default for tab components

* Remove addUserPreferences

* Small refactor to use commandsManager from getCommandsModule instead of getting it from App.js
This commit is contained in:
Gustavo André Lelis authored and GitHub committed 2020-02-20 16:25:26 -05:00
1 parent 4fd0c6dfcb
commit ebc01a8ca2
18 files changed
+510 -119

No files matched your search

@@ -419,7 +419,7 @@ describe('OHIF User Preferences', () => {
cy.get('.HotkeysPreferences').within(() => {
cy.contains('Rotate Right') // label we're looking for
.parent()
.find('.errorMessage')
.find('.preferencesInputErrorMessage')
.as('errorMsg')
.should('have.text', '"Invert" is already using the "i" shortcut.');
});
@@ -440,7 +440,7 @@ describe('OHIF User Preferences', () => {
cy.get('.HotkeysPreferences').within(() => {
cy.contains('Rotate Right') // label we're looking for
.parent()
.find('.errorMessage')
.find('.preferencesInputErrorMessage')
.as('errorMsg')
.should('have.text', '"ctrl+z" shortcut combination is not allowed');
});
@@ -461,7 +461,7 @@ describe('OHIF User Preferences', () => {
cy.get('.HotkeysPreferences').within(() => {
cy.contains('Zoom Out') // label we're looking for
.parent()
.find('.errorMessage')
.find('.preferencesInputErrorMessage')
.as('errorMsg')
.should(
'have.text',