Commit 5562b9a0 authored by Giannis Kopanas's avatar Giannis Kopanas Committed by Alexandros Georgantas

fix(applicationmanager): add data-test-id for testing purposes

parent 632e4714
......@@ -243,7 +243,9 @@ const Opener = props => {
return (
<OpenerWrapper>
<SettingsIcon onClick={toggleMenu}>{settingsIcon}</SettingsIcon>
<SettingsIcon data-test-id="component-types" onClick={toggleMenu}>
{settingsIcon}
</SettingsIcon>
</OpenerWrapper>
)
}
......
......@@ -204,8 +204,8 @@ class Division extends React.Component {
return (
<div ref={provided.innerRef} {...provided.draggableProps}>
<BookComponent
bookId={bookId}
applicationParameter={applicationParameter}
bookId={bookId}
onAdminUnlock={onAdminUnlock}
onWorkflowUpdate={onWorkflowUpdate}
currentUser={currentUser}
......@@ -284,7 +284,7 @@ class Division extends React.Component {
// const displayed = bookComponents.length > 0 ? list : emptyList
return (
<DivisionContainer>
<DivisionContainer data-test-id={`${label}-division`}>
<HeaderContainer>
<DivisionHeader>{label.toUpperCase()}</DivisionHeader>
<DivisionActions>{addButtons}</DivisionActions>
......
......@@ -229,23 +229,23 @@ class DivisionsArea extends Component {
add={addBookComponent}
addBookComponents={addBookComponents}
applicationParameter={applicationParameter}
onWorkflowUpdate={onWorkflowUpdate}
onAdminUnlock={onAdminUnlock}
currentUser={currentUser}
bookComponents={bookComponents}
bookId={bookId}
currentUser={currentUser}
deleteBookComponent={deleteBookComponent}
onDeleteBookComponent={onDeleteBookComponent}
divisionId={id}
rules={rules}
history={history}
key={id}
label={label}
history={history}
onAdminUnlock={onAdminUnlock}
onDeleteBookComponent={onDeleteBookComponent}
onWarning={onWarning}
onWorkflowUpdate={onWorkflowUpdate}
outerContainer={outerContainer}
reorderingAllowed={reorderingAllowed}
rules={rules}
showModal={showModal}
showModalToggle={showModalToggle}
reorderingAllowed={reorderingAllowed}
updateApplicationParameters={updateApplicationParameters}
updateBookComponentContent={updateBookComponentContent}
updateBookComponentOrder={updateBookComponentOrder}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment