Tweak LiveComponent docs #8958
Annotations
1 error and 1 notice
Run e2e tests:
test/e2e/tests/js.spec.js#L14
1) [webkit] › tests/js.spec.js:4:1 › toggle_attribute ────────────────────────────────────────────
Error: expect(received).toEqual(expected) // deep equality
Expected: ArrayContaining [{"attr": "style", "newValue": "display: block;", "oldValue": "display: none;"}, {"attr": "aria-expanded", "newValue": "true", "oldValue": "false"}, {"attr": "open", "newValue": "true", "oldValue": null}, ObjectContaining {"attr": "class", "newValue": "fade-in"}, ObjectContaining {"attr": "class", "oldValue": "fade-in"}]
Received: [{"attr": "aria-expanded", "newValue": "true", "oldValue": "false"}, {"attr": "aria-expanded", "newValue": "true", "oldValue": "true"}, {"attr": "open", "newValue": "true", "oldValue": null}, {"attr": "class", "newValue": "fade-in", "oldValue": null}, {"attr": "style", "newValue": "display: block;", "oldValue": "display: none;"}]
12 | // wait for the transition time (set to 50)
13 | await page.waitForTimeout(100);
> 14 | expect(await changes()).toEqual(
| ^
15 | expect.arrayContaining([
16 | {
17 | attr: "style",
at /__w/phoenix_live_view/phoenix_live_view/test/e2e/tests/js.spec.js:14:27
|
Run e2e tests
1 flaky
[webkit] › tests/js.spec.js:4:1 › toggle_attribute ─────────────────────────────────────────────
3 skipped
452 passed (4.0m)
|
Loading