Skip to content

URS-007 · Account Creation with Required Fields

Status: PASS  ·  Duration: 1m 39s  ·  Run Date: April 21, 2026


PASS

Step 1: Login as distributor admin


PASS

Step 2: Navigate to account creation form

Step 2: Navigate to account creation form


Step 3: Validation error when facility name is missing

Section titled “Step 3: Validation error when facility name is missing”
PASS

Step 3: Validation error when facility name is missing


Step 4: Validation error when shipping address is missing

Section titled “Step 4: Validation error when shipping address is missing”
PASS

Step 4: Validation error when shipping address is missing


Step 5: Validation error when primary contact is missing

Section titled “Step 5: Validation error when primary contact is missing”
PASS

Step 5: Validation error when primary contact is missing


Step 6: Fill all required fields and submit

Section titled “Step 6: Fill all required fields and submit”
PASS

Step 6: Fill all required fields and submit

Step 6: Fill all required fields and submit

Step 6: Fill all required fields and submit

Step 6: Fill all required fields and submit

Step 6: Fill all required fields and submit

Step 6: Fill all required fields and submit


Step 7: Verify account appears in the accounts list

Section titled “Step 7: Verify account appears in the accounts list”
PASS

Step 7: Verify account appears in the accounts list


Step 8: Verify account detail page shows all fields

Section titled “Step 8: Verify account detail page shows all fields”
PASS

Step 8: Verify account detail page shows all fields

Account created with required facility name

Section titled “Account created with required facility name”
PASS

sales_accounts row with name “ZuriMED Test Facility (URS-007)” should exist and be linked to ZuriMED (manufacturer) and StellarTech (distributor)

SELECT id, name, status,
manufacturer_organization_id, distributor_organization_id,
shipping_location_id, billing_contact_id, shipping_contact_id,
created_at
FROM sales_accounts
WHERE name = $1
AND manufacturer_organization_id = $2
AND distributor_organization_id = $3
idnamestatusmanufacturer_organization_iddistributor_organization_idshipping_location_idbilling_contact_idshipping_contact_idcreated_at
019dae9e-b4a4-78bd-a629-b8e038abb167ZuriMED Test Facility (URS-007)proposeda1b2c3d4-e5f6-7890-abcd-ef1234567890b2c3d4e5-f6a7-8901-bcde-f12345678901019dae9e-b49e-7d1d-96eb-c07f2eccebd5019dae9e-b4a1-7204-a0f4-325068e9a5a1019dae9e-b4a0-70fd-a11e-0a611fc9bb222026-04-21T05:58:49.747Z

Shipping address persisted with required fields

Section titled “Shipping address persisted with required fields”
PASS

real_world_locations row referenced by shipping_location_id should contain street “123 Medical Drive”, city “Springfield”, state “IL”, zip “62701”

SELECT id, name, street_address, city, state, zip, country, active
FROM real_world_locations
WHERE id = $1
idnamestreet_addresscitystatezipcountryactive
019dae9e-b49e-7d1d-96eb-c07f2eccebd5ZuriMED Test Facility (URS-007)123 Medical DriveSpringfieldIL62701UStrue

Primary contact persisted with required name

Section titled “Primary contact persisted with required name”
PASS

contacts row referenced by billing_contact_id should have name “John Smith”

SELECT id, name, organization_id, active
FROM contacts
WHERE id = $1
idnameorganization_idactive
019dae9e-b4a1-7204-a0f4-325068e9a5a1John Smitha1b2c3d4-e5f6-7890-abcd-ef1234567890true

PASS

contact_items row with type=‘email’ should exist for the billing contact, value=john.smith@zurimed-test-facility.example.com

SELECT id, contact_id, type, value
FROM contact_items
WHERE contact_id = $1
AND type = 'email'
idcontact_idtypevalue
019dae9e-b4a2-7f62-80f8-874ff8034157019dae9e-b4a1-7204-a0f4-325068e9a5a1emailjohn.smith@zurimed-test-facility.example.com

PASS

contact_items row with type=‘phone’ should exist for the billing contact (standardized to +15551234567)

SELECT id, contact_id, type, value
FROM contact_items
WHERE contact_id = $1
AND type = 'phone'
idcontact_idtypevalue
019dae9e-b4a2-7f62-80f8-875056305fc3019dae9e-b4a1-7204-a0f4-325068e9a5a1phone+15551234567

Shipping contact persisted with required name

Section titled “Shipping contact persisted with required name”
PASS

contacts row referenced by shipping_contact_id should have name “John Smith”

SELECT id, name, organization_id, active
FROM contacts
WHERE id = $1
idnameorganization_idactive
019dae9e-b4a0-70fd-a11e-0a611fc9bb22John Smitha1b2c3d4-e5f6-7890-abcd-ef1234567890true

PASS

contact_items row with type=‘email’ should exist for the shipping contact, value=john.smith@zurimed-test-facility.example.com

SELECT id, contact_id, type, value
FROM contact_items
WHERE contact_id = $1
AND type = 'email'
idcontact_idtypevalue
019dae9e-b4a1-7204-a0f4-324e20dcf2d6019dae9e-b4a0-70fd-a11e-0a611fc9bb22emailjohn.smith@zurimed-test-facility.example.com

PASS

sales_account_user_assignments should have an active row linking Bob Kauffman to the new account

SELECT sales_account_id, user_id, active, representative_type
FROM sales_account_user_assignments
WHERE sales_account_id = $1
AND user_id = $2
AND active = true
sales_account_iduser_idactiverepresentative_type
019dae9e-b4a4-78bd-a629-b8e038abb16717b8c9d0-e1f2-3456-1234-567890123456truesalesperson