jdalt / angular-test-tool-box Goto Github PK
View Code? Open in Web Editor NEWA module with providers that make testing component based angular applications easier.
A module with providers that make testing component based angular applications easier.
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.
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.
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).
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.
The last param DirectiveHelper.compileFn()
is confusing and it's use is not obvious. Replace it with an options object literal that can alter the compile mechanism in predefined ways.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.