Skip to content

Commit

Permalink
Update tests (mock data and FilterButtons.test.jsx) and formatting of…
Browse files Browse the repository at this point in the history
… frontend components (#867)
  • Loading branch information
howard-e authored Dec 14, 2023
1 parent 8215cb9 commit 56205a3
Show file tree
Hide file tree
Showing 4 changed files with 91 additions and 51 deletions.
3 changes: 2 additions & 1 deletion client/components/TestQueueRow/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,8 @@ const TestQueueRow = ({
{isAdmin && renderOpenAsDropdown()}
{isAdmin && renderDeleteMenu()}
{(!isAdmin &&
currentUserTestPlanRun.testResultsLength > 0 && (
currentUserTestPlanRun.testResultsLength >
0 && (
<Button
ref={deleteTesterResultsButtonRef}
variant="danger"
Expand Down
18 changes: 8 additions & 10 deletions client/components/common/BasicThemedModal/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,16 +102,14 @@ const BasicThemedModal = ({
</Button>
)}
{actionButtons.map(({ action, text }) => (
<Button
key={text}
variant={
theme === 'danger' ? 'danger' : 'primary'
}
onClick={action}
>
{text}
</Button>
))}
<Button
key={text}
variant={theme === 'danger' ? 'danger' : 'primary'}
onClick={action}
>
{text}
</Button>
))}
</Modal.Footer>
</Modal>
</>
Expand Down
1 change: 1 addition & 0 deletions client/tests/FilterButtons.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ describe('FilterButtons', () => {
};
const defaultProps = {
filterOptions,
filterLabel: 'Filter',
activeFilter: DATA_MANAGEMENT_TABLE_FILTER_OPTIONS.ALL,
onFilterChange: () => {}
};
Expand Down
Loading

0 comments on commit 56205a3

Please sign in to comment.