silbinarywolf / cypress-aurelia-unit-test Goto Github PK
View Code? Open in Web Editor NEWThis is a library designed to feel like the official aurelia/testing library but instead it is built to work with Cypress.
License: MIT License
This is a library designed to feel like the official aurelia/testing library but instead it is built to work with Cypress.
License: MIT License
The problem
Some code is falling over in Cypress only because bind() and attached() are being called twice. Should remove the offending code.
The problem
Cypress has an issue where tests will run perfectly fine when using cypress open
but fails when using cypress run
.
Related to:
The problem
After completing/merging a fix for #9, any components I had that were @containerless no longer rendered correctly.
I know that removing the manual attached()/bind() was the correct thing so I need to investigate other solutions.
For example, maybe instead of doing "compile" on the view beforehand, I can just do "enhance" and be done with it.
The problem
Previous changes related to only using enhance
mean that I've lost the reference to the viewModel.
The solution
Walk the nodes that have been created and find the viewModel via the controller on the HTMLElement. (access the au
property)
Relies on #1
Why
Consider allowing bindingContext to be a function as well.
A potential benefit is that you can use "Container.instance.get" after aurelia has called start.
const bindingContext = this.bindingContext;
//const bindingContext = typeof(this.bindingContext) === 'function' ? this.bindingContext() : this.bindingContext;
Why?
aurelia-dialog
crashes Cypress when you try to use it with unit testin, so I have some code that removes it for you and tells you it was removed for that reason.
The use-case is so that you can import your "main" configuration file from your app without adjusting it.
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.