Skip to content

Commit

Permalink
fix: messaging for empty test suite list (#921)
Browse files Browse the repository at this point in the history
  • Loading branch information
haneabogdan authored Oct 27, 2023
1 parent b1841d5 commit 3bb6a29
Showing 1 changed file with 15 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,24 @@ import {EmptyListContent, HelpCard} from '@molecules';

import {externalLinks} from '@utils/externalLinks';

const EmptyTestSuites: FC<{action: () => void}> = props => {
const {action} = props;
interface EmptyTestSuitesProps {
action: () => void;
isClusterAvailable?: boolean;
}

const EmptyTestSuites: FC<EmptyTestSuitesProps> = ({action, isClusterAvailable}) => {
return (
<EmptyListContent
title="Create your first test suite in a few easy steps."
description="Simply define your test suites, add any tests, execute it and view the results!"
title={
isClusterAvailable
? 'Create your first test suite in a few easy steps.'
: 'This environment does not have any test suites defined.'
}
description={
isClusterAvailable
? 'Simply define your test suites, add any tests, execute it and view the results!'
: 'To add a test suite, connect an agent to this environment.'
}
buttonText="Add a new test suite"
emptyListReadonlyDescription="We could not find any test suites in this environment."
emptyListReadonlyTitle="No test suites found"
Expand Down

0 comments on commit 3bb6a29

Please sign in to comment.