cypress-attributes
v1.0.0
Published
Cypress command to check multiple dom attributes of an element at the same time
Downloads
3
Readme
cypress-attributes
Cypress command to check multiple dom attributes of an element at the same time
Usage
import Stepper from "./Stepper";
describe("<Stepper>", () => {
it("should set default props", () => {
cy.mount(
<Stepper
data-someattribute="attribute-value"
id="mystepper"
className="stepper"
/>
);
cy.get("#mystepper").attributes({
"data-someattribute": "attribute-value",
id: "mystepper",
class: "stepper",
});
});
});