test: update scaffold CT test to not have chaining that will cause detached dom flake (#28960)

* chore: update test to not have chaining that will cause detached dom flake

* empty commit
This commit is contained in:
Jennifer Shehane
2024-02-22 10:23:34 -05:00
committed by GitHub
parent c3e1120e1a
commit e7d13cf5d0

View File

@@ -112,15 +112,12 @@ describe('scaffolding component testing', {
})
cy.contains('Component Testing').click()
cy.get(`[data-testid="select-framework"]`)
cy.get('button').should('be.visible').contains('React.js(detected)')
cy.get('button').contains('Next step').click()
cy.contains('button', 'React.js(detected)').should('be.visible')
cy.contains('button', 'Next step').click()
// react-dom dependency is missing
cy.findByTestId('dependency-react-dom').within(() => {
cy.get('[aria-label="pending installation"]').should('exist')
cy.get('[aria-label="pending installation"]')
})
// fake install