Skip to content

Conversation

@TetianaFomina
Copy link
Collaborator

No description provided.

@vercel
Copy link

vercel bot commented Mar 12, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
react-boilerplate ✅ Ready (Inspect) Visit Preview Mar 12, 2024 10:19am

expect(request.response?.statusCode).to.equal(200);
});
cy.wait(3000);
cy.get('[data-testid="first-name"] input').should(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you consider:

    cy.getBySel('first-name').children('input').should(

?

expect(request.response?.statusCode).to.equal(200);
});
cy.getBySel("users-list").should("be.visible");
cy.wait(3000);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Without cy.wait(3000); doesn't work?

{props.options.map((option) => (
<MenuItem
key={option[props.keyValue]?.toString()}
data-testid={option[props.keyValue]?.toString()}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's add a prefixed option because we can have more than one select box on the page, which can cause problems.

Suggested change
data-testid={option[props.keyValue]?.toString()}
data-testid={`${props.testId}-option-${option[props.keyValue]?.toString()}`}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants