Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import { render as r } from '../test-utils'
- function render(ui, options) {
- const utils = r(ui, options)
- return {
- ...utils,
- username: utils.getByLabelText(/username/i),
- password: utils.getByLabelText(/password/i),
- login: utils.getByText(/login/i),
- successModal: () => utils.getByTestId('login-success')
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement