GithubHelp home page GithubHelp logo

jdalt / angular-test-tool-box Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 98 KB

A module with providers that make testing component based angular applications easier.

Makefile 0.11% JavaScript 99.89%

angular-test-tool-box's People

Contributors

jdalt avatar scotttrenda avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

rib3

angular-test-tool-box's Issues

Feature Request: `dom.text()` should Normalize Whitespace

Most of the time we grab dom.text() we want the text to reflect what the user sees in the browser. If dom.text() can normalize text (while being overriden to get raw text) it will make testing easier and consistent.

This will be a breaking change and require a major version bump.

isDate not defined

In the backported param serializer, isDate and toJson are used in serializeValue, but they are not defined anywhere in the code. Either add these params to avoid errors in this provider, or remove the provider entirely.

Also, since Emrah came across this bug when using expectMany incorrectly, it may be a good idea to do a more in-depth param sniff at the beginning of those functions, and throw an error if any are provided incorrectly.

dom.text() doesn't work with attribute selector?

When using dom.text('[test-id="pair-text"]') in a test it seemed that all text (from various parts of the ui) were printed out. However, dom.find('[test-id="pair-text"]').$el.text() gave me the text that I was actually interested in (the text from a single element).

Cannot set falsy input value

dom.val('') does not change the element's value. This is because the check is for if (value), which bypasses the line that sets the value.

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.