Skip to content

Commit

Permalink
update snapshots and remove tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kshen0 committed Sep 12, 2023
1 parent 723c854 commit d0be2c1
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 53 deletions.
8 changes: 0 additions & 8 deletions apps/admin/frontend/src/__snapshots__/app.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -1184,10 +1184,6 @@ exports[`L&A (logic and accuracy) flow 2`] = `
page-break-after: always;
}
.c0 > .large-top-margin {
margin-top: 1.75in;
}
.c1 {
display: -webkit-box;
display: -webkit-flex;
Expand Down Expand Up @@ -1375,7 +1371,6 @@ exports[`L&A (logic and accuracy) flow 2`] = `
>
<div
class="c1"
data-testid="header"
>
<div
class="seal"
Expand Down Expand Up @@ -1852,7 +1847,6 @@ House Bill 1796 - Flag Referendum
>
<div
class="c1"
data-testid="header"
>
<div
class="seal"
Expand Down Expand Up @@ -2329,7 +2323,6 @@ House Bill 1796 - Flag Referendum
>
<div
class="c1"
data-testid="header"
>
<div
class="seal"
Expand Down Expand Up @@ -2806,7 +2799,6 @@ House Bill 1796 - Flag Referendum
>
<div
class="c1"
data-testid="header"
>
<div
class="seal"
Expand Down
15 changes: 0 additions & 15 deletions libs/mark-flow-ui/src/pages/__snapshots__/print_page.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,6 @@ exports[`no votes 1`] = `
page-break-after: always;
}
.c0 > .large-top-margin {
margin-top: 1.75in;
}
.c1 {
display: -webkit-box;
display: -webkit-flex;
Expand Down Expand Up @@ -272,7 +268,6 @@ exports[`no votes 1`] = `
>
<div
class="c1"
data-testid="header"
>
<div
class="seal"
Expand Down Expand Up @@ -865,10 +860,6 @@ exports[`with votes 1`] = `
page-break-after: always;
}
.c0 > .large-top-margin {
margin-top: 1.75in;
}
.c1 {
display: -webkit-box;
display: -webkit-flex;
Expand Down Expand Up @@ -1032,7 +1023,6 @@ exports[`with votes 1`] = `
>
<div
class="c1"
data-testid="header"
>
<div
class="seal"
Expand Down Expand Up @@ -1622,10 +1612,6 @@ exports[`without votes and inline seal 1`] = `
page-break-after: always;
}
.c0 > .large-top-margin {
margin-top: 1.75in;
}
.c1 {
display: -webkit-box;
display: -webkit-flex;
Expand Down Expand Up @@ -1789,7 +1775,6 @@ exports[`without votes and inline seal 1`] = `
>
<div
class="c1"
data-testid="header"
>
<div
class="seal"
Expand Down
5 changes: 0 additions & 5 deletions libs/ui/src/__snapshots__/bmd_paper_ballot.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,6 @@ exports[`BmdPaperBallot renders votes for candidate contests and yes-no contests
page-break-after: always;
}
.c0 > .large-top-margin {
margin-top: 1.75in;
}
.c1 {
display: -webkit-box;
display: -webkit-flex;
Expand Down Expand Up @@ -275,7 +271,6 @@ exports[`BmdPaperBallot renders votes for candidate contests and yes-no contests
>
<div
class="c1"
data-testid="header"
>
<div
class="seal"
Expand Down
25 changes: 0 additions & 25 deletions libs/ui/src/bmd_paper_ballot.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -202,31 +202,6 @@ test('BmdPaperBallot renders remaining choices for multi-seat contests', () => {
screen.getByText('[no selection for 1 of 3 choices]');
});

test('BmdPaperBallot renders a large top margin when prop is passed', () => {
renderBmdPaperBallot({
electionDefinition: electionWithMsEitherNeitherDefinition,
ballotStyleId: '1',
precinctId: '6525',
votes: {},
largeTopMargin: true,
});

const header = screen.getByTestId('header');
expect(header.className).toContain('large-top-margin');
});

test('BmdPaperBallot does not render a large top margin when prop is not passed', () => {
renderBmdPaperBallot({
electionDefinition: electionWithMsEitherNeitherDefinition,
ballotStyleId: '1',
precinctId: '6525',
votes: {},
});

const header = screen.getByTestId('header');
expect(header.className).not.toContain('large-top-margin');
});

test('BmdPaperBallot renders seal', () => {
renderBmdPaperBallot({
electionDefinition: electionWithMsEitherNeitherDefinition,
Expand Down

0 comments on commit d0be2c1

Please sign in to comment.