mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
try to fix flaky IT test
This commit is contained in:
@@ -73,8 +73,8 @@ class ReadingIT {
|
||||
main.getByRole(AriaRole.BUTTON, new Locator.GetByRoleOptions().setName("Next")).click();
|
||||
main.getByRole(AriaRole.BUTTON, new Locator.GetByRoleOptions().setName("Subscribe").setExact(true)).click();
|
||||
|
||||
// click on subscription, "2" is actually the unread count
|
||||
sidebar.getByText("CommaFeed test feed2").click();
|
||||
// click on subscription
|
||||
sidebar.getByText(Pattern.compile("CommaFeed test feed\\d+")).click();
|
||||
|
||||
// we have two unread entries
|
||||
PlaywrightAssertions.assertThat(main.getByRole(AriaRole.ARTICLE)).hasCount(2);
|
||||
@@ -94,8 +94,8 @@ class ReadingIT {
|
||||
.extract()
|
||||
.as(Entries.class), e -> e.getEntries().size() == 1);
|
||||
|
||||
// click on subscription, "1" is actually the unread count
|
||||
sidebar.getByText("CommaFeed test feed1").click();
|
||||
// click on subscription
|
||||
sidebar.getByText(Pattern.compile("CommaFeed test feed\\d*")).click();
|
||||
|
||||
// only one unread entry now
|
||||
PlaywrightAssertions.assertThat(main.getByRole(AriaRole.ARTICLE)).hasCount(1);
|
||||
|
||||
Reference in New Issue
Block a user