Xray
all clusters 1h 6h 24h 48h 3d 5d 7d 14d 30d ‹
Last 1 hour▾
Ends now. Anything up to this cluster's 30-day retention.
Start and end times
Cancel
Interpreted in UTC (change it at the right of this bar). Earliest available: 2026-10-24 09:20:08.
› →|
updated 5d ago
Sample data. This database was generated by scripts/seed_dev_db.py — every service, deploy, person and figure on this page is synthetic. Names are sample.*@seed.invalid and image tags are prefixed SEED-. Nothing here happened.

Test cases › Sites › Create site

TC-SITE-012 A site name already used in the organization is refused, in both CRO and SMO organizations Medium

revision 1 · last changed 6d ago by import from the test management tool

Role
Organization Admin
Preconditions
Organization type: CRO and SMO. Access, as an Organization Admin, to one CRO organization and one SMO organization, each already holding at least one site.
Test data
The exact name of a site that already exists in each organization.
Passes when
In both organization types a duplicate site name is refused with a message, and no second site is created.
Source
ENG-6929; Live observation · verified 2026-09-25
Observations
The two organization types word the same refusal differently: the SMO message is terse and technical, the CRO one is written for the user. The SMO refusal also comes back from the server as an error (status 500) rather than as a validation response. From the code, the SMO name check is case-sensitive, so the same name in different capitals may still be accepted; not tried live. ENG-6929 expects the system to warn or block when the name is already in use, and the product owner has confirmed it is blocked in both CRO and SMO organizations. Both messages were confirmed on 2026-09-25 by the product owner: SMO from a screenshot (SMOChecking, New site form), with the toast "Could not add site: name 'Cape Girardeau' already in use" and the form still open; CRO from the response on the site details step, "A site named "Berlin01" already exists in your organization. Please use a different name." In a CRO organization the site is created when the details step is left (ENG-4390), so the refusal comes there.

Steps

#StepExpected result
1In the SMO organization, open the create site form, enter the name of an existing site with a valid address and office hours, and save.The site is not created, the form stays open, and an error message reads: Could not add site: name '<the name entered>' already in use.
2In the CRO organization, start creating a site and enter the name of an existing site on the site details step, then try to continue.You cannot continue, and a message reads: A site named "<the name entered>" already exists in your organization. Please use a different name.
3Return to the sites list in each organization and search for that name.Only the original site with that name is listed; no second one has been added.

Automated tests (0)

None. An automated test is tied to this case when its title or source cites TC-SITE-012. The old tool named automation/tests/onboardingsvc/sites/test_create_site.py :: TestCreateSite::test_create_duplicate_site (partially automated), which matches no test the suites ran.

Note from the old tool: The named API test proves the SMO refusal beneath the interface; nothing covers the CRO path or either on-screen message.