Interactivity API: Fix popover bind hydration #153297
Annotations
10 errors and 1 notice
|
Run the tests:
test/e2e/specs/interactivity/directive-bind.spec.ts#L269
4) [chromium] › specs/interactivity/directive-bind.spec.ts:231:8 › data-wp-bind › attribute hydration › disabled is correctly hydrated for different values
Error: expect(locator).toHaveAttribute(expected) failed
Locator: getByTestId('hydrating false').getByTestId('toggle value')
Expected: "2"
Received: "1"
Timeout: 5000ms
Call log:
- Expect "toHaveAttribute" with timeout 5000ms
- waiting for getByTestId('hydrating false').getByTestId('toggle value')
9 × locator resolved to <button data-toggle-count="1" data-testid="toggle value" data-wp-on--click="actions.toggleValue" data-wp-bind--data-toggle-count="context.count">Toggle</button>
- unexpected value "1"
267 |
268 | // Ensure values have been updated after toggling.
> 269 | await expect( toggle ).toHaveAttribute(
| ^
270 | 'data-toggle-count',
271 | '2'
272 | );
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/interactivity/directive-bind.spec.ts:269:29
|
|
Run the tests:
test/e2e/specs/interactivity/directive-bind.spec.ts#L269
3) [chromium] › specs/interactivity/directive-bind.spec.ts:231:8 › data-wp-bind › attribute hydration › value is correctly hydrated for different values
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(locator).toHaveAttribute(expected) failed
Locator: getByTestId('hydrating false').getByTestId('toggle value')
Expected: "2"
Received: "1"
Timeout: 5000ms
Call log:
- Expect "toHaveAttribute" with timeout 5000ms
- waiting for getByTestId('hydrating false').getByTestId('toggle value')
9 × locator resolved to <button data-toggle-count="1" data-testid="toggle value" data-wp-on--click="actions.toggleValue" data-wp-bind--data-toggle-count="context.count">Toggle</button>
- unexpected value "1"
267 |
268 | // Ensure values have been updated after toggling.
> 269 | await expect( toggle ).toHaveAttribute(
| ^
270 | 'data-toggle-count',
271 | '2'
272 | );
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/interactivity/directive-bind.spec.ts:269:29
|
|
Run the tests:
test/e2e/specs/interactivity/directive-bind.spec.ts#L269
3) [chromium] › specs/interactivity/directive-bind.spec.ts:231:8 › data-wp-bind › attribute hydration › value is correctly hydrated for different values
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(locator).toHaveAttribute(expected) failed
Locator: getByTestId('hydrating false').getByTestId('toggle value')
Expected: "2"
Received: "1"
Timeout: 5000ms
Call log:
- Expect "toHaveAttribute" with timeout 5000ms
- waiting for getByTestId('hydrating false').getByTestId('toggle value')
9 × locator resolved to <button data-toggle-count="1" data-testid="toggle value" data-wp-on--click="actions.toggleValue" data-wp-bind--data-toggle-count="context.count">Toggle</button>
- unexpected value "1"
267 |
268 | // Ensure values have been updated after toggling.
> 269 | await expect( toggle ).toHaveAttribute(
| ^
270 | 'data-toggle-count',
271 | '2'
272 | );
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/interactivity/directive-bind.spec.ts:269:29
|
|
Run the tests:
test/e2e/specs/interactivity/directive-bind.spec.ts#L269
3) [chromium] › specs/interactivity/directive-bind.spec.ts:231:8 › data-wp-bind › attribute hydration › value is correctly hydrated for different values
Error: expect(locator).toHaveAttribute(expected) failed
Locator: getByTestId('hydrating false').getByTestId('toggle value')
Expected: "2"
Received: "1"
Timeout: 5000ms
Call log:
- Expect "toHaveAttribute" with timeout 5000ms
- waiting for getByTestId('hydrating false').getByTestId('toggle value')
9 × locator resolved to <button data-toggle-count="1" data-testid="toggle value" data-wp-on--click="actions.toggleValue" data-wp-bind--data-toggle-count="context.count">Toggle</button>
- unexpected value "1"
267 |
268 | // Ensure values have been updated after toggling.
> 269 | await expect( toggle ).toHaveAttribute(
| ^
270 | 'data-toggle-count',
271 | '2'
272 | );
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/interactivity/directive-bind.spec.ts:269:29
|
|
Run the tests:
test/e2e/specs/interactivity/directive-bind.spec.ts#L269
2) [chromium] › specs/interactivity/directive-bind.spec.ts:231:8 › data-wp-bind › attribute hydration › name is correctly hydrated for different values
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(locator).toHaveAttribute(expected) failed
Locator: getByTestId('hydrating false').getByTestId('toggle value')
Expected: "2"
Received: "1"
Timeout: 5000ms
Call log:
- Expect "toHaveAttribute" with timeout 5000ms
- waiting for getByTestId('hydrating false').getByTestId('toggle value')
9 × locator resolved to <button data-toggle-count="1" data-testid="toggle value" data-wp-on--click="actions.toggleValue" data-wp-bind--data-toggle-count="context.count">Toggle</button>
- unexpected value "1"
267 |
268 | // Ensure values have been updated after toggling.
> 269 | await expect( toggle ).toHaveAttribute(
| ^
270 | 'data-toggle-count',
271 | '2'
272 | );
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/interactivity/directive-bind.spec.ts:269:29
|
|
Run the tests:
test/e2e/specs/interactivity/directive-bind.spec.ts#L269
2) [chromium] › specs/interactivity/directive-bind.spec.ts:231:8 › data-wp-bind › attribute hydration › name is correctly hydrated for different values
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(locator).toHaveAttribute(expected) failed
Locator: getByTestId('hydrating false').getByTestId('toggle value')
Expected: "2"
Received: "1"
Timeout: 5000ms
Call log:
- Expect "toHaveAttribute" with timeout 5000ms
- waiting for getByTestId('hydrating false').getByTestId('toggle value')
9 × locator resolved to <button data-toggle-count="1" data-testid="toggle value" data-wp-on--click="actions.toggleValue" data-wp-bind--data-toggle-count="context.count">Toggle</button>
- unexpected value "1"
267 |
268 | // Ensure values have been updated after toggling.
> 269 | await expect( toggle ).toHaveAttribute(
| ^
270 | 'data-toggle-count',
271 | '2'
272 | );
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/interactivity/directive-bind.spec.ts:269:29
|
|
Run the tests:
test/e2e/specs/interactivity/directive-bind.spec.ts#L269
2) [chromium] › specs/interactivity/directive-bind.spec.ts:231:8 › data-wp-bind › attribute hydration › name is correctly hydrated for different values
Error: expect(locator).toHaveAttribute(expected) failed
Locator: getByTestId('hydrating false').getByTestId('toggle value')
Expected: "2"
Received: "1"
Timeout: 5000ms
Call log:
- Expect "toHaveAttribute" with timeout 5000ms
- waiting for getByTestId('hydrating false').getByTestId('toggle value')
9 × locator resolved to <button data-toggle-count="1" data-testid="toggle value" data-wp-on--click="actions.toggleValue" data-wp-bind--data-toggle-count="context.count">Toggle</button>
- unexpected value "1"
267 |
268 | // Ensure values have been updated after toggling.
> 269 | await expect( toggle ).toHaveAttribute(
| ^
270 | 'data-toggle-count',
271 | '2'
272 | );
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/interactivity/directive-bind.spec.ts:269:29
|
|
Run the tests:
test/e2e/specs/interactivity/directive-bind.spec.ts#L269
1) [chromium] › specs/interactivity/directive-bind.spec.ts:231:8 › data-wp-bind › attribute hydration › width is correctly hydrated for different values
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(locator).toHaveAttribute(expected) failed
Locator: getByTestId('hydrating false').getByTestId('toggle value')
Expected: "2"
Received: "1"
Timeout: 5000ms
Call log:
- Expect "toHaveAttribute" with timeout 5000ms
- waiting for getByTestId('hydrating false').getByTestId('toggle value')
9 × locator resolved to <button data-toggle-count="1" data-testid="toggle value" data-wp-on--click="actions.toggleValue" data-wp-bind--data-toggle-count="context.count">Toggle</button>
- unexpected value "1"
267 |
268 | // Ensure values have been updated after toggling.
> 269 | await expect( toggle ).toHaveAttribute(
| ^
270 | 'data-toggle-count',
271 | '2'
272 | );
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/interactivity/directive-bind.spec.ts:269:29
|
|
Run the tests:
test/e2e/specs/interactivity/directive-bind.spec.ts#L269
1) [chromium] › specs/interactivity/directive-bind.spec.ts:231:8 › data-wp-bind › attribute hydration › width is correctly hydrated for different values
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(locator).toHaveAttribute(expected) failed
Locator: getByTestId('hydrating false').getByTestId('toggle value')
Expected: "2"
Received: "1"
Timeout: 5000ms
Call log:
- Expect "toHaveAttribute" with timeout 5000ms
- waiting for getByTestId('hydrating false').getByTestId('toggle value')
9 × locator resolved to <button data-toggle-count="1" data-testid="toggle value" data-wp-on--click="actions.toggleValue" data-wp-bind--data-toggle-count="context.count">Toggle</button>
- unexpected value "1"
267 |
268 | // Ensure values have been updated after toggling.
> 269 | await expect( toggle ).toHaveAttribute(
| ^
270 | 'data-toggle-count',
271 | '2'
272 | );
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/interactivity/directive-bind.spec.ts:269:29
|
|
Run the tests:
test/e2e/specs/interactivity/directive-bind.spec.ts#L269
1) [chromium] › specs/interactivity/directive-bind.spec.ts:231:8 › data-wp-bind › attribute hydration › width is correctly hydrated for different values
Error: expect(locator).toHaveAttribute(expected) failed
Locator: getByTestId('hydrating false').getByTestId('toggle value')
Expected: "2"
Received: "1"
Timeout: 5000ms
Call log:
- Expect "toHaveAttribute" with timeout 5000ms
- waiting for getByTestId('hydrating false').getByTestId('toggle value')
9 × locator resolved to <button data-toggle-count="1" data-testid="toggle value" data-wp-on--click="actions.toggleValue" data-wp-bind--data-toggle-count="context.count">Toggle</button>
- unexpected value "1"
267 |
268 | // Ensure values have been updated after toggling.
> 269 | await expect( toggle ).toHaveAttribute(
| ^
270 | 'data-toggle-count',
271 | '2'
272 | );
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/interactivity/directive-bind.spec.ts:269:29
|
|
Run the tests
6 failed
[chromium] › specs/interactivity/directive-bind.spec.ts:231:8 › data-wp-bind › attribute hydration › width is correctly hydrated for different values
[chromium] › specs/interactivity/directive-bind.spec.ts:231:8 › data-wp-bind › attribute hydration › name is correctly hydrated for different values
[chromium] › specs/interactivity/directive-bind.spec.ts:231:8 › data-wp-bind › attribute hydration › value is correctly hydrated for different values
[chromium] › specs/interactivity/directive-bind.spec.ts:231:8 › data-wp-bind › attribute hydration › disabled is correctly hydrated for different values
[chromium] › specs/interactivity/directive-bind.spec.ts:231:8 › data-wp-bind › attribute hydration › aria-disabled is correctly hydrated for different values
[chromium] › specs/interactivity/directive-bind.spec.ts:231:8 › data-wp-bind › attribute hydration › popover is correctly hydrated for different values
3 skipped
241 passed (13.3m)
|
Loading