fix: update data source initialization to use base URL and prevent lo… #569
changeset-release.yml
on: push
Changeset Release
2m 15s
Annotations
8 errors
|
Changeset Release
Process completed with exit code 1.
|
|
apps/console/src/__tests__/ObjectForm.test.tsx > ObjectForm with MSW Integration > Data Persistence > should persist created data in MSW memory:
apps/console/src/__tests__/ObjectForm.test.tsx#L486
TypeError: Cannot read properties of undefined (reading 'id')
❯ apps/console/src/__tests__/ObjectForm.test.tsx:486:40
|
|
apps/console/src/__tests__/ObjectForm.test.tsx > ObjectForm with MSW Integration > View Mode > should render form in read-only mode:
apps/console/src/__tests__/ObjectForm.test.tsx#L329
AssertionError: expected '' to be 'Alice Johnson' // Object.is equality
Ignored nodes: comments, script, style
<html>
<head />
<body>
<div>
<div
class="w-full"
>
<form
data-obj-type="form"
fields="[object Object],[object Object],[object Object]"
layout="vertical"
>
<div
class="space-y-4"
>
<div
class="space-y-2"
>
<label
class="text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
for="_r_1t_-form-item"
>
Name
<span
aria-label="required"
class="text-destructive ml-1"
>
*
</span>
</label>
<input
aria-describedby="_r_1t_-form-item-description"
aria-invalid="false"
class="flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm"
disabled=""
id="_r_1t_-form-item"
name="name"
schema="[object Object]"
type="text"
value=""
/>
</div>
<div
class="space-y-2"
>
<label
class="text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
for="_r_1u_-form-item"
>
Email
</label>
<input
aria-describedby="_r_1u_-form-item-description"
aria-invalid="false"
class="flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm"
disabled=""
id="_r_1u_-form-item"
name="email"
placeholder="email@example.com"
schema="[object Object]"
type="email"
value=""
/>
</div>
<div
class="space-y-2"
>
<label
class="text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
for="_r_1v_-form-item"
>
Company
</label>
<input
aria-describedby="_r_1v_-form-item-description"
aria-invalid="false"
class="flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm"
disabled=""
id="_r_1v_-form-item"
name="company"
schema="[object Object]"
type="text"
value=""
/>
</div>
</div>
<div
class="flex gap-2 justify-start mt-6"
>
<button
class="inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring
|
|
apps/console/src/__tests__/ObjectForm.test.tsx > ObjectForm with MSW Integration > Edit Mode > should update contact successfully:
apps/console/src/__tests__/ObjectForm.test.tsx#L268
AssertionError: expected '' to be 'Alice Johnson' // Object.is equality
Ignored nodes: comments, script, style
<html>
<head />
<body>
<div>
<div
class="w-full"
>
<form
data-obj-type="form"
fields="[object Object],[object Object],[object Object]"
layout="vertical"
>
<div
class="space-y-4"
>
<div
class="space-y-2"
>
<label
class="text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
for="_r_1q_-form-item"
>
Name
<span
aria-label="required"
class="text-destructive ml-1"
>
*
</span>
</label>
<input
aria-describedby="_r_1q_-form-item-description"
aria-invalid="false"
class="flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm"
id="_r_1q_-form-item"
name="name"
schema="[object Object]"
type="text"
value=""
/>
</div>
<div
class="space-y-2"
>
<label
class="text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
for="_r_1r_-form-item"
>
Email
</label>
<input
aria-describedby="_r_1r_-form-item-description"
aria-invalid="false"
class="flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm"
id="_r_1r_-form-item"
name="email"
placeholder="email@example.com"
schema="[object Object]"
type="email"
value=""
/>
</div>
<div
class="space-y-2"
>
<label
class="text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
for="_r_1s_-form-item"
>
Company
</label>
<input
aria-describedby="_r_1s_-form-item-description"
aria-invalid="false"
class="flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm"
id="_r_1s_-form-item"
name="company"
schema="[object Object]"
type="text"
value=""
/>
</div>
</div>
<div
class="flex gap-2 justify-start mt-6"
>
<button
class="inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none
|
|
apps/console/src/__tests__/ObjectForm.test.tsx > ObjectForm with MSW Integration > Edit Mode > should load existing contact data:
apps/console/src/__tests__/ObjectForm.test.tsx#L237
AssertionError: expected '' to be 'Alice Johnson' // Object.is equality
Ignored nodes: comments, script, style
<html>
<head />
<body>
<div>
<div
class="w-full"
>
<form
data-obj-type="form"
fields="[object Object],[object Object],[object Object]"
layout="vertical"
>
<div
class="space-y-4"
>
<div
class="space-y-2"
>
<label
class="text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
for="_r_1n_-form-item"
>
Name
<span
aria-label="required"
class="text-destructive ml-1"
>
*
</span>
</label>
<input
aria-describedby="_r_1n_-form-item-description"
aria-invalid="false"
class="flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm"
id="_r_1n_-form-item"
name="name"
schema="[object Object]"
type="text"
value=""
/>
</div>
<div
class="space-y-2"
>
<label
class="text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
for="_r_1o_-form-item"
>
Email
</label>
<input
aria-describedby="_r_1o_-form-item-description"
aria-invalid="false"
class="flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm"
id="_r_1o_-form-item"
name="email"
placeholder="email@example.com"
schema="[object Object]"
type="email"
value=""
/>
</div>
<div
class="space-y-2"
>
<label
class="text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
for="_r_1p_-form-item"
>
Company
</label>
<input
aria-describedby="_r_1p_-form-item-description"
aria-invalid="false"
class="flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm"
id="_r_1p_-form-item"
name="company"
schema="[object Object]"
type="text"
value=""
/>
</div>
</div>
<div
class="flex gap-2 justify-start mt-6"
>
<button
class="inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none
|
|
apps/console/src/__tests__/ObjectForm.test.tsx > ObjectForm with MSW Integration > Create Mode > should apply default values:
apps/console/src/__tests__/ObjectForm.test.tsx#L214
TypeError: Cannot read properties of undefined (reading 'priority')
❯ apps/console/src/__tests__/ObjectForm.test.tsx:214:29
|
|
apps/console/src/__tests__/ObjectForm.test.tsx > ObjectForm with MSW Integration > Create Mode > should create a new contact successfully:
apps/console/src/__tests__/ObjectForm.test.tsx#L143
TypeError: Cannot read properties of undefined (reading 'name')
❯ apps/console/src/__tests__/ObjectForm.test.tsx:143:29
|
|
packages/plugin-form/src/ObjectForm.msw.test.tsx > ObjectForm with ObjectStack/MSW > loads record data in edit mode:
packages/plugin-form/src/ObjectForm.msw.test.tsx#L150
Error: expect(element).toHaveValue(Alice Johnson)
Expected the element to have value:
Alice Johnson
Received:
Ignored nodes: comments, script, style
<html>
<head />
<body>
<div>
<div
class="w-full"
>
<form
data-obj-type="form"
fields="[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]"
layout="vertical"
>
<div
class="space-y-4"
>
<div
class="space-y-2"
>
<label
class="text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
for="_r_3k_-form-item"
>
Name
<span
aria-label="required"
class="text-destructive ml-1"
>
*
</span>
</label>
<input
aria-describedby="_r_3k_-form-item-description"
aria-invalid="false"
class="flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm"
id="_r_3k_-form-item"
name="name"
schema="[object Object]"
type="text"
value=""
/>
</div>
<div
class="space-y-2"
>
<label
class="text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
for="_r_3l_-form-item"
>
Company
</label>
<input
aria-describedby="_r_3l_-form-item-description"
aria-invalid="false"
class="flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm"
id="_r_3l_-form-item"
name="company"
schema="[object Object]"
type="text"
value=""
/>
</div>
<div
class="space-y-2"
>
<label
class="text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
for="_r_3m_-form-item"
>
Email
</label>
<input
aria-describedby="_r_3m_-form-item-description"
aria-invalid="false"
class="flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm"
id="_r_3m_-form-item"
name="email"
placeholder="email@example.com"
schema="[object Object]"
type="email"
value=""
/>
</div>
<div
class="space-y-2"
>
<label
class="text-sm font-medium leading-none peer-disabled:cursor-not-a
|