WIP custom events #1
Annotations
4 errors, 3 warnings, and 1 notice
test/e2e/tests/forms.spec.js#L289
1) [chromium] › tests/forms.spec.js:243:1 › loading and locked states with latent clone ──────────
Error: Timed out 5000ms waiting for expect(locator).toHaveAttribute()
Locator: locator('#test-form button')
Expected: have attribute
Received: not have attribute
Call log:
- expect.toHaveAttribute with timeout 5000ms
- waiting for locator('#test-form button')
- locator resolved to <button id="submit" phx-disable-with="Saving...">Submit</button>
- unexpected value "false"
- locator resolved to <button id="submit" phx-disable-with="Saving...">Submit</button>
- unexpected value "false"
- locator resolved to <button id="submit" phx-disable-with="Saving...">Submit</button>
- unexpected value "false"
- locator resolved to <button id="submit" phx-disable-with="Saving...">Submit</button>
- unexpected value "false"
- locator resolved to <button id="submit" phx-disable-with="Saving...">Submit</button>
- unexpected value "false"
- locator resolved to <button id="submit" phx-disable-with="Saving...">Submit</button>
- unexpected value "false"
- locator resolved to <button id="submit" phx-disable-with="Saving...">Submit</button>
- unexpected value "false"
- locator resolved to <button id="submit" phx-disable-with="Saving...">Submit</button>
- unexpected value "false"
- locator resolved to <button id="submit" phx-disable-with="Saving...">Submit</button>
- unexpected value "false"
287 | await expect(testInput).toHaveAttribute("data-phx-ref-src");
288 | await expect(submitBtn).toHaveAttribute("data-phx-ref-loading");
> 289 | await expect(submitBtn).toHaveAttribute("data-phx-ref-src");
| ^
290 | // submit adds 1 more stream item and new hook is mounted
291 | await expect(page.locator("#form-stream li")).toHaveText([
292 | "*%{id: 1}pong",
at /__w/phoenix_live_view/phoenix_live_view/test/e2e/tests/forms.spec.js:289:27
|
test/e2e/tests/forms.spec.js#L284
1) [chromium] › tests/forms.spec.js:243:1 › loading and locked states with latent clone ──────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toHaveAttribute()
Locator: locator('#test-form')
Expected: have attribute
Received: not have attribute
Call log:
- expect.toHaveAttribute with timeout 5000ms
- waiting for locator('#test-form')
- locator resolved to <form id="test-form" phx-submit="save" phx-change="validate">…</form>
- unexpected value "false"
- locator resolved to <form id="test-form" phx-submit="save" phx-change="validate">…</form>
- unexpected value "false"
- locator resolved to <form id="test-form" phx-submit="save" phx-change="validate">…</form>
- unexpected value "false"
- locator resolved to <form id="test-form" phx-submit="save" phx-change="validate">…</form>
- unexpected value "false"
- locator resolved to <form id="test-form" phx-submit="save" phx-change="validate">…</form>
- unexpected value "false"
- locator resolved to <form id="test-form" phx-submit="save" phx-change="validate">…</form>
- unexpected value "false"
- locator resolved to <form id="test-form" phx-submit="save" phx-change="validate">…</form>
- unexpected value "false"
- locator resolved to <form id="test-form" phx-submit="save" phx-change="validate">…</form>
- unexpected value "false"
- locator resolved to <form id="test-form" phx-submit="save" phx-change="validate">…</form>
- unexpected value "false"
282 | await expect(testInput).toHaveAttribute("readonly", "");
283 | await expect(submitBtn).toHaveClass("phx-submit-loading");
> 284 | await expect(testForm).toHaveAttribute("data-phx-ref-loading");
| ^
285 | await expect(testForm).toHaveAttribute("data-phx-ref-src");
286 | await expect(testInput).toHaveAttribute("data-phx-ref-loading");
287 | await expect(testInput).toHaveAttribute("data-phx-ref-src");
at /__w/phoenix_live_view/phoenix_live_view/test/e2e/tests/forms.spec.js:284:26
|
test/e2e/tests/forms.spec.js#L289
2) [firefox] › tests/forms.spec.js:243:1 › loading and locked states with latent clone ───────────
Error: Timed out 5000ms waiting for expect(locator).toHaveAttribute()
Locator: locator('#test-form button')
Expected: have attribute
Received: not have attribute
Call log:
- expect.toHaveAttribute with timeout 5000ms
- waiting for locator('#test-form button')
- locator resolved to <button id="submit" phx-disable-with="Saving...">Submit</button>
- unexpected value "false"
- locator resolved to <button id="submit" phx-disable-with="Saving...">Submit</button>
- unexpected value "false"
- locator resolved to <button id="submit" phx-disable-with="Saving...">Submit</button>
- unexpected value "false"
- locator resolved to <button id="submit" phx-disable-with="Saving...">Submit</button>
- unexpected value "false"
- locator resolved to <button id="submit" phx-disable-with="Saving...">Submit</button>
- unexpected value "false"
- locator resolved to <button id="submit" phx-disable-with="Saving...">Submit</button>
- unexpected value "false"
- locator resolved to <button id="submit" phx-disable-with="Saving...">Submit</button>
- unexpected value "false"
- locator resolved to <button id="submit" phx-disable-with="Saving...">Submit</button>
- unexpected value "false"
- locator resolved to <button id="submit" phx-disable-with="Saving...">Submit</button>
- unexpected value "false"
287 | await expect(testInput).toHaveAttribute("data-phx-ref-src");
288 | await expect(submitBtn).toHaveAttribute("data-phx-ref-loading");
> 289 | await expect(submitBtn).toHaveAttribute("data-phx-ref-src");
| ^
290 | // submit adds 1 more stream item and new hook is mounted
291 | await expect(page.locator("#form-stream li")).toHaveText([
292 | "*%{id: 1}pong",
at /__w/phoenix_live_view/phoenix_live_view/test/e2e/tests/forms.spec.js:289:27
|
test/e2e/tests/forms.spec.js#L282
2) [firefox] › tests/forms.spec.js:243:1 › loading and locked states with latent clone ───────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toHaveAttribute(expected)
Locator: locator('#test-form input[name=myname]')
Expected string: ""
Received string: serializes to the same string
Call log:
- expect.toHaveAttribute with timeout 5000ms
- waiting for locator('#test-form input[name=myname]')
- locator resolved to <input value="14" name="myname"/>
- unexpected value "null"
- locator resolved to <input value="14" name="myname"/>
- unexpected value "null"
- locator resolved to <input value="15" name="myname"/>
- unexpected value "null"
- locator resolved to <input value="17" name="myname"/>
- unexpected value "null"
- locator resolved to <input value="22" name="myname"/>
- unexpected value "null"
- locator resolved to <input value="34" name="myname"/>
- unexpected value "null"
- locator resolved to <input value="45" name="myname"/>
- unexpected value "null"
- locator resolved to <input value="55" name="myname"/>
- unexpected value "null"
- locator resolved to <input value="65" name="myname"/>
- unexpected value "null"
280 | await expect(submitBtn).toHaveText("Saving...");
281 | await expect(testForm).toHaveClass("phx-submit-loading");
> 282 | await expect(testInput).toHaveAttribute("readonly", "");
| ^
283 | await expect(submitBtn).toHaveClass("phx-submit-loading");
284 | await expect(testForm).toHaveAttribute("data-phx-ref-loading");
285 | await expect(testForm).toHaveAttribute("data-phx-ref-src");
at /__w/phoenix_live_view/phoenix_live_view/test/e2e/tests/forms.spec.js:282:27
|
test/e2e/[webkit] › tests/forms.spec.js#L1
test/e2e/[webkit] › tests/forms.spec.js took 45.5s
|
test/e2e/[webkit] › tests/streams.spec.js#L1
test/e2e/[webkit] › tests/streams.spec.js took 24.9s
|
test/e2e/[firefox] › tests/streams.spec.js#L1
test/e2e/[firefox] › tests/streams.spec.js took 16.6s
|
|
This job succeeded
Loading