Skip to content

Commit

Permalink
Update Syphilis AOE copy and order (#8130)
Browse files Browse the repository at this point in the history
  • Loading branch information
emyl3 authored Sep 23, 2024
1 parent 27d4604 commit a63182a
Show file tree
Hide file tree
Showing 12 changed files with 250 additions and 241 deletions.
8 changes: 4 additions & 4 deletions cypress/e2e/04-covid_only_tests.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ describe("Conducting a COVID test from:", () => {
cy.contains("label", "Yes").click();
});

cy.contains("legend", "Is the patient currently experiencing any symptoms?")
cy.contains("legend", "Is the patient currently experiencing or showing signs of symptoms?")
.next("div")
.within(() => {
cy.contains("label", "No").click();
Expand All @@ -126,7 +126,7 @@ describe("Conducting a COVID test from:", () => {
"not.exist",
);

cy.contains("legend", "Is the patient currently experiencing any symptoms?")
cy.contains("legend", "Is the patient currently experiencing or showing signs of symptoms?")
.next("div")
.within(() => {
cy.contains("label", "Yes").click();
Expand Down Expand Up @@ -187,7 +187,7 @@ describe("Conducting a COVID test from:", () => {
cy.contains("label", "No").click();
});

cy.contains("legend", "Is the patient currently experiencing any symptoms?")
cy.contains("legend", "Is the patient currently experiencing or showing signs of symptoms?")
.next("div")
.within(() => {
cy.contains("label", "No").click();
Expand Down Expand Up @@ -253,7 +253,7 @@ describe("Conducting a COVID test from:", () => {
cy.contains("label", "No").click();
});

cy.contains("legend", "Is the patient currently experiencing any symptoms?")
cy.contains("legend", "Is the patient currently experiencing or showing signs of symptoms?")
.next("div")
.within(() => {
cy.contains("label", "No").click();
Expand Down
10 changes: 6 additions & 4 deletions frontend/src/app/testQueue/TestCard/TestCard.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1147,7 +1147,7 @@ describe("TestCard", () => {
).toBeInTheDocument();
expect(
screen.queryByText(
"Is the patient currently experiencing any symptoms?"
"Is the patient currently experiencing or showing signs of symptoms?"
)
).not.toBeInTheDocument();
});
Expand Down Expand Up @@ -1227,7 +1227,9 @@ describe("TestCard", () => {

expect(screen.getByText("Is the patient pregnant?")).toBeInTheDocument();
expect(
screen.getByText("Is the patient currently experiencing any symptoms?")
screen.getByText(
"Is the patient currently experiencing or showing signs of symptoms?"
)
).toBeInTheDocument();
expect(
screen.getByText("What is the gender of their sexual partners?")
Expand Down Expand Up @@ -1258,7 +1260,7 @@ describe("TestCard", () => {
).not.toBeInTheDocument();
expect(
screen.queryByText(
"Is the patient currently experiencing any symptoms?"
"Is the patient currently experiencing or showing signs of symptoms?"
)
).not.toBeInTheDocument();
expect(
Expand All @@ -1280,7 +1282,7 @@ describe("TestCard", () => {
).not.toBeInTheDocument();
expect(
screen.queryByText(
"Is the patient currently experiencing any symptoms?"
"Is the patient currently experiencing or showing signs of symptoms?"
)
).not.toBeInTheDocument();
expect(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ Object {
/>
</div>
<div
class="grid-container"
class="grid-container sr-test-card-form-container"
>
<div
class="grid-row grid-gap"
Expand Down Expand Up @@ -557,7 +557,7 @@ Object {
<legend
class="usa-legend"
>
Is the patient currently experiencing any symptoms?
Is the patient currently experiencing or showing signs of symptoms?
</legend>
<div
class=""
Expand Down
7 changes: 7 additions & 0 deletions frontend/src/app/testQueue/TestCardForm/TestCardForm.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,10 @@
border-left-width: 0 !important;
padding-left: 0 !important;
}

.sr-test-card-form-container {
.usa-label,
.usa-legend {
max-width: none;
}
}
2 changes: 1 addition & 1 deletion frontend/src/app/testQueue/TestCardForm/TestCardForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ const TestCardForm = ({
showModal={isSubmitModalOpen}
onClose={() => setIsSubmitModalOpen(false)}
/>
<div className="grid-container">
<div className="grid-container sr-test-card-form-container">
{/* error and warning alerts */}
{showCorrectionWarning && (
<Alert type="warning" headingLevel="h4" className="margin-top-2">
Expand Down
Loading

0 comments on commit a63182a

Please sign in to comment.