-
Notifications
You must be signed in to change notification settings - Fork 10
Match publish forms #690
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Match publish forms #690
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| "landscape-ui": patch | ||
| --- | ||
|
|
||
| Make the behavior of adding a publication and publishing a mirror or local to a new publication consistent |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -38,9 +38,10 @@ describe("PublicationTargetList", () => { | |
| renderWithProviders(<PublicationTargetList targets={publicationTargets} />); | ||
|
|
||
| await waitFor(() => { | ||
| expect(screen.getAllByText("1 publication")).toHaveLength(3); | ||
| expect(screen.getByText("1 publication")).toBeInTheDocument(); | ||
| expect(screen.getAllByText("2 publications")).toHaveLength(2); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same as above, if it's not too hard could be worth filtering the mock data to get these numbers instead of hardcoding them.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. there's a lot of cases where this is a problem and I have another PR which also changes the mocks and affects some of these, so i'll address these separately |
||
| expect(screen.getByText(NO_DATA_TEXT)).toBeInTheDocument(); | ||
| }); | ||
| expect(screen.getByText(NO_DATA_TEXT)).toBeInTheDocument(); | ||
| }); | ||
|
|
||
| it("renders table correctly with empty targets array", () => { | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.