diff --git a/.changeset/e2e-explore-dao-cards-locator.md b/.changeset/e2e-explore-dao-cards-locator.md new file mode 100644 index 0000000000..836283bb47 --- /dev/null +++ b/.changeset/e2e-explore-dao-cards-locator.md @@ -0,0 +1,5 @@ +--- +"@aragon/app": patch +--- + +Fix the explore smoke tests' DAO card locator: gov-ui-kit 2.11.1 renders a DataListItem link as an empty overlay named via aria-labelledby, so the card content is no longer inside the link and the tests matched nothing. diff --git a/apps/app/e2e/helpers/pages/explorePage/explorePage.ts b/apps/app/e2e/helpers/pages/explorePage/explorePage.ts index 55f0698c42..4794828096 100644 --- a/apps/app/e2e/helpers/pages/explorePage/explorePage.ts +++ b/apps/app/e2e/helpers/pages/explorePage/explorePage.ts @@ -33,8 +33,5 @@ export class ExplorePage extends BasePage { readonly daoCards = () => this.page .getByRole('main') - .getByRole('link') - .filter({ - has: this.page.getByRole('heading'), - }); + .locator('div:has(> a[aria-labelledby]):has(h2)'); }