Interactivity API: Add wp-data-on-window
and wp-data-on-document
directives
#93646
Annotations
4 errors and 1 notice
Run the tests:
test/e2e/specs/interactivity/directive-on-document.spec.ts#L44
1) [chromium] › interactivity/directive-on-document.spec.ts:29:6 › data-wp-on-document › the event listener is removed when the element is removed
Error: Timed out 5000ms waiting for expect(locator).toHaveText(expected)
Locator: getByTestId('counter')
Expected string: "2"
Received string: "1"
Call log:
- expect.toHaveText with timeout 5000ms
- waiting for getByTestId('counter')
- locator resolved to <p data-testid="counter" data-wp-text="state.counte…>1</p>
- unexpected value "1"
- locator resolved to <p data-testid="counter" data-wp-text="state.counte…>1</p>
- unexpected value "1"
- locator resolved to <p data-testid="counter" data-wp-text="state.counte…>1</p>
- unexpected value "1"
- locator resolved to <p data-testid="counter" data-wp-text="state.counte…>1</p>
- unexpected value "1"
- locator resolved to <p data-testid="counter" data-wp-text="state.counte…>1</p>
- unexpected value "1"
- locator resolved to <p data-testid="counter" data-wp-text="state.counte…>1</p>
- unexpected value "1"
- locator resolved to <p data-testid="counter" data-wp-text="state.counte…>1</p>
- unexpected value "1"
- locator resolved to <p data-testid="counter" data-wp-text="state.counte…>1</p>
- unexpected value "1"
- locator resolved to <p data-testid="counter" data-wp-text="state.counte…>1</p>
- unexpected value "1"
42 | await visibilityButton.click();
43 | await page.keyboard.press( 'ArrowDown' );
> 44 | await expect( counter ).toHaveText( '2' );
| ^
45 | } );
46 | } );
47 |
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/interactivity/directive-on-document.spec.ts:44:27
|
Run the tests:
test/e2e/specs/interactivity/directive-on-document.spec.ts#L44
1) [chromium] › interactivity/directive-on-document.spec.ts:29:6 › data-wp-on-document › the event listener is removed when the element is removed
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toHaveText(expected)
Locator: getByTestId('counter')
Expected string: "2"
Received string: "1"
Call log:
- expect.toHaveText with timeout 5000ms
- waiting for getByTestId('counter')
- locator resolved to <p data-testid="counter" data-wp-text="state.counte…>1</p>
- unexpected value "1"
- locator resolved to <p data-testid="counter" data-wp-text="state.counte…>1</p>
- unexpected value "1"
- locator resolved to <p data-testid="counter" data-wp-text="state.counte…>1</p>
- unexpected value "1"
- locator resolved to <p data-testid="counter" data-wp-text="state.counte…>1</p>
- unexpected value "1"
- locator resolved to <p data-testid="counter" data-wp-text="state.counte…>1</p>
- unexpected value "1"
- locator resolved to <p data-testid="counter" data-wp-text="state.counte…>1</p>
- unexpected value "1"
- locator resolved to <p data-testid="counter" data-wp-text="state.counte…>1</p>
- unexpected value "1"
- locator resolved to <p data-testid="counter" data-wp-text="state.counte…>1</p>
- unexpected value "1"
- locator resolved to <p data-testid="counter" data-wp-text="state.counte…>1</p>
- unexpected value "1"
42 | await visibilityButton.click();
43 | await page.keyboard.press( 'ArrowDown' );
> 44 | await expect( counter ).toHaveText( '2' );
| ^
45 | } );
46 | } );
47 |
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/interactivity/directive-on-document.spec.ts:44:27
|
Run the tests:
test/e2e/specs/interactivity/directive-on-document.spec.ts#L44
1) [chromium] › interactivity/directive-on-document.spec.ts:29:6 › data-wp-on-document › the event listener is removed when the element is removed
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toHaveText(expected)
Locator: getByTestId('counter')
Expected string: "2"
Received string: "1"
Call log:
- expect.toHaveText with timeout 5000ms
- waiting for getByTestId('counter')
- locator resolved to <p data-testid="counter" data-wp-text="state.counte…>1</p>
- unexpected value "1"
- locator resolved to <p data-testid="counter" data-wp-text="state.counte…>1</p>
- unexpected value "1"
- locator resolved to <p data-testid="counter" data-wp-text="state.counte…>1</p>
- unexpected value "1"
- locator resolved to <p data-testid="counter" data-wp-text="state.counte…>1</p>
- unexpected value "1"
- locator resolved to <p data-testid="counter" data-wp-text="state.counte…>1</p>
- unexpected value "1"
- locator resolved to <p data-testid="counter" data-wp-text="state.counte…>1</p>
- unexpected value "1"
- locator resolved to <p data-testid="counter" data-wp-text="state.counte…>1</p>
- unexpected value "1"
- locator resolved to <p data-testid="counter" data-wp-text="state.counte…>1</p>
- unexpected value "1"
- locator resolved to <p data-testid="counter" data-wp-text="state.counte…>1</p>
- unexpected value "1"
42 | await visibilityButton.click();
43 | await page.keyboard.press( 'ArrowDown' );
> 44 | await expect( counter ).toHaveText( '2' );
| ^
45 | } );
46 | } );
47 |
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/interactivity/directive-on-document.spec.ts:44:27
|
Run the tests
Process completed with exit code 1.
|
Run the tests
1 failed
[chromium] › interactivity/directive-on-document.spec.ts:29:6 › data-wp-on-document › the event listener is removed when the element is removed
169 passed (7.6m)
|
The logs for this run have expired and are no longer available.
Loading