Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reposition Test Plan Actions #378

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 29 additions & 9 deletions client/components/TestQueueRow/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -447,16 +447,36 @@ const TestQueueRow = ({
<td className="actions">
<div className="test-cta-wrapper">
{currentUserAssigned && (
<>
<Button
variant="primary"
href={`/run/${currentUserTestPlanRun.id}`}
disabled={!currentUserAssigned}
>
{currentUserTestPlanRun.testResults.length >
0 &&
currentUserTestPlanRun.testResults.length <
runnableTests.length
? 'Continue testing'
: 'Start testing'}
</Button>
<Button
variant="secondary"
onClick={() => toggleTesterAssign(username)}
className="assign-self"
>
Un-assign Yourself
</Button>
</>
)}

{!currentUserAssigned && (
<Button
variant="primary"
href={`/run/${currentUserTestPlanRun.id}`}
disabled={!currentUserAssigned}
variant="secondary"
onClick={() => toggleTesterAssign(username)}
className="assign-self"
>
{currentUserTestPlanRun.testResults.length > 0 &&
currentUserTestPlanRun.testResults.length <
runnableTests.length
? 'Continue testing'
: 'Start testing'}
Assign Yourself
</Button>
)}

Expand All @@ -471,7 +491,7 @@ const TestQueueRow = ({
);
}}
>
Remove
Remove Plan
</Button>
)}

Expand Down