A Cypress library for automating UI tests on Alberta Design System components.
npm install inspector-goadgetInspector-Goadget is a Cypress-based library designed to simplify UI automation testing for Alberta Design System components. It provides efficient, reusable helper functions to interact with complex shadow DOM elements, ensuring seamless and reliable test creation.
To add Inspector-Goadget to your Cypress project, run:npm install inspector-goadget --save-dev
Import method you need:import { clickGoaButton } from 'inspector-goadget';
Find a goa-button by text and clickclickGoaButton(buttonText);
Find a goa-input by label and type texttypeInGoaInput(label, text);
Find a goa-dropdown by label and select an option by textselectGoaDropdownOption(label, optionText);
Find a goa-input by label and upload a fileuploadFileToGoaInput(label, fileName);
Contributions are welcome! Please open an issue or submit a pull request if you'd like to improve Inspector-Goadget.