Skip to content

Commit

Permalink
test: ♻️ combined asserions on shouldBeAbleToSeeProposalsAsSeparateLi…
Browse files Browse the repository at this point in the history
…stItems
  • Loading branch information
nickhumberstone committed Sep 20, 2024
1 parent b7c5539 commit 7d4d403
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,7 @@ void shouldBeAbleToProposeAndViewProposal() {
void shouldBeAbleToSeeProposalsAsSeparateListItems() {
submitProposal("Topic 1");
submitProposal("Topic 2");
assertAll(
() -> assertThat(page.getByRole(AriaRole.LISTITEM)
.and(page.getByText("Topic 1", new Page.GetByTextOptions().setExact(true)))).isVisible(),
() -> assertThat(page.getByRole(AriaRole.LISTITEM)
.and(page.getByText("Topic 2", new Page.GetByTextOptions().setExact(true)))).isVisible());
assertThat(page.locator("ul")).hasText(new String[] { "Topic 1", "Topic 2" });
}

@Disabled("Refactor other tests before implementing this")
Expand Down

0 comments on commit 7d4d403

Please sign in to comment.