Fix QIT errors reported by PHPStan #696
Annotations
2 errors, 4 warnings, and 1 notice
tests/e2e-pw/specs/merchant/merchant-payment-gateways-confirmation.spec.ts#L96
1) [merchant] › merchant/merchant-payment-gateways-confirmation.spec.ts:79:6 › payment gateways disable confirmation › should disable WCPay after confirming, then enable again without confirming
Error: Timed out 10000ms waiting for expect(locator).toHaveText(expected)
Locator: getByRole('link', { name: '"WooPayments" payment method is currently' })
Expected string: "Yes"
Received string: ""
Call log:
- expect.toHaveText with timeout 10000ms
- waiting for getByRole('link', { name: '"WooPayments" payment method is currently' })
94 | await waitForToggleLoading( page );
95 | await getSaveButton( page ).click();
> 96 | await expect( getToggle( page ) ).toHaveText( 'Yes' );
| ^
97 | } );
98 |
99 | test( 'should show the modal even after clicking the cancel button multiple times', async ( {
at /home/runner/work/woocommerce-payments/woocommerce-payments/tests/e2e-pw/specs/merchant/merchant-payment-gateways-confirmation.spec.ts:96:37
|
tests/e2e-pw/specs/merchant/merchant-payment-gateways-confirmation.spec.ts#L96
1) [merchant] › merchant/merchant-payment-gateways-confirmation.spec.ts:79:6 › payment gateways disable confirmation › should disable WCPay after confirming, then enable again without confirming
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 10000ms waiting for expect(locator).toHaveText(expected)
Locator: getByRole('link', { name: '"WooPayments" payment method is currently' })
Expected string: "Yes"
Received string: ""
Call log:
- expect.toHaveText with timeout 10000ms
- waiting for getByRole('link', { name: '"WooPayments" payment method is currently' })
94 | await waitForToggleLoading( page );
95 | await getSaveButton( page ).click();
> 96 | await expect( getToggle( page ) ).toHaveText( 'Yes' );
| ^
97 | } );
98 |
99 | test( 'should show the modal even after clicking the cancel button multiple times', async ( {
at /home/runner/work/woocommerce-payments/woocommerce-payments/tests/e2e-pw/specs/merchant/merchant-payment-gateways-confirmation.spec.ts:96:37
|
[shopper] › shopper/shopper-checkout-purchase.spec.ts#L1
[shopper] › shopper/shopper-checkout-purchase.spec.ts took 23.4s
|
[merchant] › merchant/merchant-disputes-view-details-via-order-notice.spec.ts#L1
[merchant] › merchant/merchant-disputes-view-details-via-order-notice.spec.ts took 18.9s
|
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/upload-artifact@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
The following artifacts were uploaded using a version of actions/upload-artifact that is scheduled for deprecation: "playwright-report".
Please update your workflow to use v4 of the artifact actions.
Learn more: https://github.blog/changelog/2024-04-16-deprecation-notice-v3-of-the-artifact-actions/
|
|
This job succeeded
Loading