Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
olerichter00 committed Jan 29, 2025
1 parent 524b620 commit 93f40dd
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ describe("MyCollectionArtworkSubmissionStatus", () => {
})

expect(screen.queryByTestId("MyCollectionArtworkSubmissionStatus-Container")).not.toBe(null)
expect(screen.queryAllByText("Complete Submission")).toHaveLength(2)
expect(screen.queryAllByText("Complete Submission")).toHaveLength(1)
})

it("displays submission status in LISTED state", () => {
Expand All @@ -60,7 +60,7 @@ describe("MyCollectionArtworkSubmissionStatus", () => {
})

expect(screen.queryByTestId("MyCollectionArtworkSubmissionStatus-Container")).not.toBe(null)
expect(screen.queryAllByText("Listed")).toHaveLength(2)
expect(screen.queryAllByText("Listed")).toHaveLength(1)
})

it("does not display action label in LISTED state", () => {
Expand Down Expand Up @@ -95,7 +95,7 @@ describe("MyCollectionArtworkSubmissionStatus", () => {
})

expect(screen.queryByTestId("MyCollectionArtworkSubmissionStatus-Container")).not.toBe(null)
expect(screen.queryAllByText("Submission Unsuccessful")).toHaveLength(2)
expect(screen.queryAllByText("Submission Unsuccessful")).toHaveLength(1)
})

it("navigatess to submission flow ShippingLocation when action label is pressed and Tier 2", () => {
Expand All @@ -113,7 +113,7 @@ describe("MyCollectionArtworkSubmissionStatus", () => {
},
})

expect(screen.queryAllByText("Complete Listing")).toHaveLength(2)
expect(screen.queryAllByText("Complete Listing")).toHaveLength(1)
fireEvent.press(screen.getByTestId("action-label"))
expect(navigate).toHaveBeenCalledWith("/sell/submissions/some-external-id/edit", {
passProps: {
Expand All @@ -139,7 +139,7 @@ describe("MyCollectionArtworkSubmissionStatus", () => {
},
})

expect(screen.queryAllByText("Complete Submission")).toHaveLength(2)
expect(screen.queryAllByText("Complete Submission")).toHaveLength(1)
fireEvent.press(screen.getByTestId("action-label"))
expect(navigate).toHaveBeenCalledWith("/sell/submissions/some-external-id/edit", {
passProps: {
Expand Down

0 comments on commit 93f40dd

Please sign in to comment.