-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: use same text color for excluded and selectedExcluded (#1147)
* fix: use same text color for excluded and selectedExcluded * test: add rendering tests * fix: lock icon on locked excluded
- Loading branch information
Showing
6 changed files
with
160 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
const fixture = { | ||
getLayout: () => ({ | ||
title: 'Field title', | ||
qInfo: { | ||
qId: 'qId', | ||
}, | ||
visualization: 'listbox', | ||
qListObject: { | ||
qDimensionInfo: { | ||
qLocked: true, | ||
}, | ||
qSize: { | ||
qcy: 5, | ||
}, | ||
qInitialDataFetch: [{ qLeft: 0, qWidth: 0, qTop: 0, qHeight: 0 }], | ||
}, | ||
qSelectionInfo: { | ||
qInSelections: false, | ||
}, | ||
layoutOptions: { | ||
layoutOrder: 'row', | ||
}, | ||
}), | ||
getListObjectData: () => [ | ||
{ | ||
qMatrix: [ | ||
[ | ||
{ | ||
qText: 'Locked', | ||
qNum: 'NaN', | ||
qElemNumber: 0, | ||
qState: 'L', | ||
}, | ||
], | ||
[ | ||
{ | ||
qText: 'Alternative', | ||
qNum: 'NaN', | ||
qElemNumber: 1, | ||
qState: 'A', | ||
}, | ||
], | ||
[ | ||
{ | ||
qText: 'Optional', | ||
qNum: 'NaN', | ||
qElemNumber: 2, | ||
qState: 'O', | ||
}, | ||
], | ||
[ | ||
{ | ||
qText: 'Locked Excluded', | ||
qNum: 'NaN', | ||
qElemNumber: 3, | ||
qState: 'XL', | ||
}, | ||
], | ||
[ | ||
{ | ||
qText: 'Excluded', | ||
qNum: 'NaN', | ||
qElemNumber: 4, | ||
qState: 'X', | ||
}, | ||
], | ||
], | ||
qTails: [], | ||
qArea: { | ||
qLeft: 0, | ||
qTop: 0, | ||
qWidth: 1, | ||
qHeight: 5, | ||
}, | ||
}, | ||
], | ||
}; | ||
|
||
export default fixture; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
const fixture = { | ||
getLayout: () => ({ | ||
title: 'Field title', | ||
qInfo: { | ||
qId: 'qId', | ||
}, | ||
visualization: 'listbox', | ||
qListObject: { | ||
qDimensionInfo: { | ||
qLocked: false, | ||
}, | ||
qSize: { | ||
qcy: 5, | ||
}, | ||
qInitialDataFetch: [{ qLeft: 0, qWidth: 0, qTop: 0, qHeight: 0 }], | ||
}, | ||
qSelectionInfo: { | ||
qInSelections: false, | ||
}, | ||
layoutOptions: { | ||
layoutOrder: 'row', | ||
}, | ||
}), | ||
getListObjectData: () => [ | ||
{ | ||
qMatrix: [ | ||
[ | ||
{ | ||
qText: 'Selected', | ||
qNum: 'NaN', | ||
qElemNumber: 0, | ||
qState: 'S', | ||
}, | ||
], | ||
[ | ||
{ | ||
qText: 'Alternative', | ||
qNum: 'NaN', | ||
qElemNumber: 1, | ||
qState: 'A', | ||
}, | ||
], | ||
[ | ||
{ | ||
qText: 'Optional', | ||
qNum: 'NaN', | ||
qElemNumber: 2, | ||
qState: 'O', | ||
}, | ||
], | ||
[ | ||
{ | ||
qText: 'Selected Excluded', | ||
qNum: 'NaN', | ||
qElemNumber: 3, | ||
qState: 'XS', | ||
}, | ||
], | ||
[ | ||
{ | ||
qText: 'Excluded', | ||
qNum: 'NaN', | ||
qElemNumber: 4, | ||
qState: 'X', | ||
}, | ||
], | ||
], | ||
qTails: [], | ||
qArea: { | ||
qLeft: 0, | ||
qTop: 0, | ||
qWidth: 1, | ||
qHeight: 5, | ||
}, | ||
}, | ||
], | ||
}; | ||
|
||
export default fixture; |
Binary file added
BIN
+12.2 KB
test/rendering/listbox/listbox.spec.js-snapshots/locked-states-js-linux.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+12.6 KB
test/rendering/listbox/listbox.spec.js-snapshots/not-locked-states-js-linux.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.