-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tests for admin panel #295
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
expect(request.response?.statusCode).to.equal(200); | ||
}); | ||
cy.wait(3000); | ||
cy.get('[data-testid="first-name"] input').should( |
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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?
@@ -65,6 +65,7 @@ function SelectInputRaw<T extends object>( | |||
{props.options.map((option) => ( | |||
<MenuItem | |||
key={option[props.keyValue]?.toString()} | |||
data-testid={option[props.keyValue]?.toString()} |
There was a problem hiding this comment.
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.
data-testid={option[props.keyValue]?.toString()} | |
data-testid={`${props.testId}-option-${option[props.keyValue]?.toString()}`} |
No description provided.