URS-007 · Account Creation with Required Fields
Status: PASS · Duration: 1m 39s · Run Date: April 21, 2026
Test Scenarios
Section titled “Test Scenarios”Step 1: Login as distributor admin
Section titled “Step 1: Login as distributor admin”
Step 2: Navigate to account creation form
Section titled “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”
Step 4: Validation error when shipping address is missing
Section titled “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”
Step 6: Fill all required fields and submit
Section titled “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”
Step 8: Verify account detail page shows all fields
Section titled “Step 8: Verify account detail page shows all fields”
Recordings
Section titled “Recordings”step 01 login
Section titled “step 01 login”step 02 navigate to form
Section titled “step 02 navigate to form”step 03 facility name required
Section titled “step 03 facility name required”step 04 address required
Section titled “step 04 address required”step 05 contact required
Section titled “step 05 contact required”step 06 submit success
Section titled “step 06 submit success”step 07 account in list
Section titled “step 07 account in list”step 08 account detail
Section titled “step 08 account detail”Database Validations
Section titled “Database Validations”Account created with required facility name
Section titled “Account created with required facility name”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| id | name | status | manufacturer_organization_id | distributor_organization_id | shipping_location_id | billing_contact_id | shipping_contact_id | created_at |
|---|---|---|---|---|---|---|---|---|
| 019dae9e-b4a4-78bd-a629-b8e038abb167 | ZuriMED Test Facility (URS-007) | proposed | a1b2c3d4-e5f6-7890-abcd-ef1234567890 | b2c3d4e5-f6a7-8901-bcde-f12345678901 | 019dae9e-b49e-7d1d-96eb-c07f2eccebd5 | 019dae9e-b4a1-7204-a0f4-325068e9a5a1 | 019dae9e-b4a0-70fd-a11e-0a611fc9bb22 | 2026-04-21T05:58:49.747Z |
Shipping address persisted with required fields
Section titled “Shipping address persisted with required fields”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| id | name | street_address | city | state | zip | country | active |
|---|---|---|---|---|---|---|---|
| 019dae9e-b49e-7d1d-96eb-c07f2eccebd5 | ZuriMED Test Facility (URS-007) | 123 Medical Drive | Springfield | IL | 62701 | US | true |
Primary contact persisted with required name
Section titled “Primary contact persisted with required name”contacts row referenced by billing_contact_id should have name “John Smith”
SELECT id, name, organization_id, active FROM contacts WHERE id = $1| id | name | organization_id | active |
|---|---|---|---|
| 019dae9e-b4a1-7204-a0f4-325068e9a5a1 | John Smith | a1b2c3d4-e5f6-7890-abcd-ef1234567890 | true |
Primary contact email saved
Section titled “Primary contact email saved”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'| id | contact_id | type | value |
|---|---|---|---|
| 019dae9e-b4a2-7f62-80f8-874ff8034157 | 019dae9e-b4a1-7204-a0f4-325068e9a5a1 | john.smith@zurimed-test-facility.example.com |
Primary contact phone saved
Section titled “Primary contact phone saved”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'| id | contact_id | type | value |
|---|---|---|---|
| 019dae9e-b4a2-7f62-80f8-875056305fc3 | 019dae9e-b4a1-7204-a0f4-325068e9a5a1 | phone | +15551234567 |
Shipping contact persisted with required name
Section titled “Shipping contact persisted with required name”contacts row referenced by shipping_contact_id should have name “John Smith”
SELECT id, name, organization_id, active FROM contacts WHERE id = $1| id | name | organization_id | active |
|---|---|---|---|
| 019dae9e-b4a0-70fd-a11e-0a611fc9bb22 | John Smith | a1b2c3d4-e5f6-7890-abcd-ef1234567890 | true |
Shipping contact email saved
Section titled “Shipping contact email saved”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'| id | contact_id | type | value |
|---|---|---|---|
| 019dae9e-b4a1-7204-a0f4-324e20dcf2d6 | 019dae9e-b4a0-70fd-a11e-0a611fc9bb22 | john.smith@zurimed-test-facility.example.com |
Sales rep assigned to the new account
Section titled “Sales rep assigned to the new account”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_id | user_id | active | representative_type |
|---|---|---|---|
| 019dae9e-b4a4-78bd-a629-b8e038abb167 | 17b8c9d0-e1f2-3456-1234-567890123456 | true | salesperson |