Update Eslint packages #81987
Annotations
3 errors and 1 notice
tools/e2e-commons/pages/page-actions.js#L315
1) specs/post-connection/recommendations.test.js:18:1 › Recommendations (Jetpack Assistant) › Navigate to the Recommendations module
Error: locator.waitFor: Error: strict mode violation: locator('[class^=jp-recommendations-]') resolved to 11 elements:
1) <div class="jp-recommendations-question__main jp-reco…>…</div> aka locator('.jp-recommendations-question__main')
2) <div class="jp-recommendations-question__content">…</div> aka getByText('Tell us more about HelloWord?To help you get the most from Jetpack, tell us')
3) <div class="jp-recommendations-question__progress-bar…>…</div> aka locator('.jp-recommendations-question__progress-bar-wrap')
4) <div class="jp-recommendations-question__progress-bar">…</div> aka locator('.jp-recommendations-question__progress-bar')
5) <h1 class="jp-recommendations-question__question">Tell us more about HelloWord?</h1> aka getByRole('heading', { name: 'Tell us more about HelloWord?' })
6) <p class="jp-recommendations-question__description">To help you get the most from Jetpack, tell us ab…</p> aka getByText('To help you get the most from')
7) <div class="jp-recommendations-question__answer">…</div> aka locator('.jp-recommendations-question__answer')
8) <div class="jp-recommendations-question__site-type-an…>…</div> aka locator('.jp-recommendations-question__site-type-answer-container')
9) <div class="jp-recommendations-question__site-type-ch…>…</div> aka getByText('I build or manage this site for a clientThis is an e-commerce siteThis is a')
10) <div class="jp-recommendations-site-type-question__co…>All of Jetpack’s great features await you and we’…</div> aka getByText('All of Jetpack’s great')
...
Call log:
- waiting for locator('[class^=jp-recommendations-]') to be visible
at ../../../../../tools/e2e-commons/pages/page-actions.js:315
313 | );
314 | const element = this.page.locator( selector );
> 315 | await element.waitFor( { state, timeout } );
| ^
316 | return element;
317 | }
318 |
at RecommendationsPage.waitForElementState (/home/runner/work/jetpack/jetpack/tools/e2e-commons/pages/page-actions.js:315:17)
at RecommendationsPage.waitForElementToBeVisible (/home/runner/work/jetpack/jetpack/tools/e2e-commons/pages/page-actions.js:264:21)
at RecommendationsPage.waitForPage (/home/runner/work/jetpack/jetpack/tools/e2e-commons/pages/page-actions.js:63:16)
at Function.init (/home/runner/work/jetpack/jetpack/tools/e2e-commons/pages/wp-page.js:18:3)
at /home/runner/work/jetpack/jetpack/projects/plugins/jetpack/tests/e2e/specs/post-connection/recommendations.test.js:22:25
at /home/runner/work/jetpack/jetpack/projects/plugins/jetpack/tests/e2e/specs/post-connection/recommendations.test.js:21:2
|
tools/e2e-commons/pages/page-actions.js#L315
1) specs/post-connection/recommendations.test.js:18:1 › Recommendations (Jetpack Assistant) › Navigate to the Recommendations module
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: locator.waitFor: Error: strict mode violation: locator('[class^=jp-recommendations-]') resolved to 11 elements:
1) <div class="jp-recommendations-question__main jp-reco…>…</div> aka locator('.jp-recommendations-question__main')
2) <div class="jp-recommendations-question__content">…</div> aka getByText('Tell us more about HelloWord?To help you get the most from Jetpack, tell us')
3) <div class="jp-recommendations-question__progress-bar…>…</div> aka locator('.jp-recommendations-question__progress-bar-wrap')
4) <div class="jp-recommendations-question__progress-bar">…</div> aka locator('.jp-recommendations-question__progress-bar')
5) <h1 class="jp-recommendations-question__question">Tell us more about HelloWord?</h1> aka getByRole('heading', { name: 'Tell us more about HelloWord?' })
6) <p class="jp-recommendations-question__description">To help you get the most from Jetpack, tell us ab…</p> aka getByText('To help you get the most from')
7) <div class="jp-recommendations-question__answer">…</div> aka locator('.jp-recommendations-question__answer')
8) <div class="jp-recommendations-question__site-type-an…>…</div> aka locator('.jp-recommendations-question__site-type-answer-container')
9) <div class="jp-recommendations-question__site-type-ch…>…</div> aka getByText('I build or manage this site for a clientThis is an e-commerce siteThis is a')
10) <div class="jp-recommendations-site-type-question__co…>All of Jetpack’s great features await you and we’…</div> aka getByText('All of Jetpack’s great')
...
Call log:
- waiting for locator('[class^=jp-recommendations-]') to be visible
at ../../../../../tools/e2e-commons/pages/page-actions.js:315
313 | );
314 | const element = this.page.locator( selector );
> 315 | await element.waitFor( { state, timeout } );
| ^
316 | return element;
317 | }
318 |
at RecommendationsPage.waitForElementState (/home/runner/work/jetpack/jetpack/tools/e2e-commons/pages/page-actions.js:315:17)
at RecommendationsPage.waitForElementToBeVisible (/home/runner/work/jetpack/jetpack/tools/e2e-commons/pages/page-actions.js:264:21)
at RecommendationsPage.waitForPage (/home/runner/work/jetpack/jetpack/tools/e2e-commons/pages/page-actions.js:63:16)
at Function.init (/home/runner/work/jetpack/jetpack/tools/e2e-commons/pages/wp-page.js:18:3)
at /home/runner/work/jetpack/jetpack/projects/plugins/jetpack/tests/e2e/specs/post-connection/recommendations.test.js:22:25
at /home/runner/work/jetpack/jetpack/projects/plugins/jetpack/tests/e2e/specs/post-connection/recommendations.test.js:21:2
|
|
|
This job failed
Loading