Skip to content

Commit

Permalink
Updating Test Run page to support #743
Browse files Browse the repository at this point in the history
  • Loading branch information
howard-e committed Nov 16, 2023
1 parent 8e7b330 commit f26c454
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 15 deletions.
21 changes: 8 additions & 13 deletions client/components/TestRenderer/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,11 @@ const InstructionsSection = styled.section``;

const HeadingText = styled.h1``;

const SubHeadingText = styled.h2``;
const SubHeadingText = styled.h2`
&#instruction-list-heading {
margin-top: 0;
}
`;

const InnerSectionHeadingText = styled.h3``;

Expand Down Expand Up @@ -610,21 +614,12 @@ const TestRenderer = ({
}
/>
<InstructionsSection>
<HeadingText id="behavior-header" tabIndex="-1">
{pageContent.instructions.header.header}
</HeadingText>
<Text>{pageContent.instructions.description}</Text>
<SubHeadingText id="instruction-list-heading">
{pageContent.instructions.instructions.header}
Instructions
</SubHeadingText>
{/*TODO: Implement instructions format described in #977*/}
{/*TODO: Include settings instructions where applicable*/}
<InstructionsContent labelIdRef="instruction-list-heading" />
<SubHeadingText id="success-criteria-list-heading">
{pageContent.instructions.assertions.header}
</SubHeadingText>
<Text>
{pageContent.instructions.assertions.description}
</Text>
<AssertionsContent labelIdRef="success-criteria-list-heading" />
<Button
disabled={
!pageContent.instructions.openTestPage.enabled
Expand Down
4 changes: 2 additions & 2 deletions client/components/TestRun/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -977,8 +977,8 @@ const TestRun = () => {
return (
<>
<h1 ref={titleRef} data-test="testing-task" tabIndex={-1}>
<span className="task-label">Testing task:</span>{' '}
{`${currentTest.seq}.`} {currentTest.title}
<span className="task-label">Test {currentTest.seq}:</span>
{currentTest.title}
</h1>
<span>{heading}</span>
<StatusBar
Expand Down

0 comments on commit f26c454

Please sign in to comment.