diff --git a/cypress/support/hostsfunctions.ts b/cypress/support/hostsfunctions.ts index 6363d90447..93a51b1d3e 100644 --- a/cypress/support/hostsfunctions.ts +++ b/cypress/support/hostsfunctions.ts @@ -26,7 +26,7 @@ export function createAndCheckHost(host_type: string, inventory: string) { cy.getByDataCy('description').type('This is the description'); if (host_type === 'stand_alone_host') { - cy.singleSelectByDataCy('[data-cy="inventory-form-group"]', inventory); + cy.singleSelectByDataCy('inventory-form-group', inventory); } // after creation - verify data is currect