Giter Club home page Giter Club logo

codewithcory / user-routine Goto Github PK

View Code? Open in Web Editor NEW
9.0 3.0 1.0 4.22 MB

User-Routine is a JavaScript library to automate user routines on web pages. You can easily test features or create tutorials with actions such as click, await, and fill.

Home Page: https://corylr.github.io/user-routine/

License: MIT License

TypeScript 60.39% HTML 28.18% JavaScript 11.43%
javascript spa application automated click e2e end-to-end single-page test typescript

user-routine's Introduction

Code With Cory

Information about Software Engineering and coding by Cory Leigh Rahman

✨ Visit the Code With Cory Home Page

user-routine's People

Contributors

codewithcory avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

stargator

user-routine's Issues

Add "wait" feature

Add an option to wait for a specific element to appear:

Action string example: 'wait .popup'

Full example:

  spaCheck([
    'click button',
    'wait .popup',
    'click .new-button',
  ]);

Should probably have a default max time to wait, perhaps add a 3rd string param override the default.

Add workaround for the descendant css combinator (space)

Currently spaces cannot be used in the action string CSS selectors in order to preserve the ease of a single-string action command. Recommend using >> instead. Should be able to replace >> with a space after the selector portion of the action string is already split off.

Note: >> is not a great solution because >> diverges from standard CSS, but I think it's worth it because it's relatively intuitive, will not conflict with existing CSS (because >> is invalid normally), and will unblock cases where using the descendant css combinator (space) would be helpful.

Example: click table>>.row:nth-child(2)>>button Edit Row // This would click an Edit button in the 2nd row of some table, regardless of how deeply nested. The resulting selector would be table .row:nth-child(2) button.

Also update the README so this functionality is well-documented.

Send input events too

e.g.: document.querySelector('.class').dispatchEvent(new InputEvent('input'));

Need to use this on the value command.

Create demo and use it as testing page

Replace the testing page with a demo, include some sort of flag or url parameter which runs fast robust tests. Display simpler demo tests. Host via GH Pages.

Add animation

Add animation to visually show what SPA Check is doing in the UI (completed in version 4.0.0)

Cannot Resolve Package When Installed from NPM

Hi there, I would like to use your project for an interactive tutorial on a business application I'm working on however for some reason it cannot resolve this package when I try to import userRoutine (as per the demo).

Not sure if this is something you've experienced yet as your demo appears to use the compiled scripts in /dist.

I'll probably just copy the built module out of /dist and use it inline in my project, but I'd much prefer to use this through npm.

Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.