Comments (9)
Cypress seems to do the job. Thanks everybody.
from alpine-turbo-drive-adapter.
Would it be worth using something like Cypress or other E2E testing solution?
Dunno how much sense unit testing the adapter makes, but having a couple of use cases running against a some HTML files would be good value/effort
from alpine-turbo-drive-adapter.
Yeah, I think it would be good to test the use case that the library is supposed to solve.
I had a first go with puppeteer but it just doesn't work and I don't understand why, lol. (https://github.com/alpinejs/alpine-turbolinks-adapter/pull/new/tests).
from alpine-turbo-drive-adapter.
I've got a feeling Cypress is going to be better for this than a Puppeteer setup. Let me know if you need any help.
from alpine-turbo-drive-adapter.
yeah, I just picked a random one since I don't have any experience with that. I'll try cypress. 👍
from alpine-turbo-drive-adapter.
Let us know if you need any help :)
from alpine-turbo-drive-adapter.
@ryangjchandler is there a way to run cypress without relying on the fact that I have a browser installed on my machine (like puppeteer does)?
from alpine-turbo-drive-adapter.
@SimoTod most browser test suites need an actual browser instance to run. Cypress has a good GitHub Action though which bootstraps the environment etc.
from alpine-turbo-drive-adapter.
Cool, it seems that cypress from terminal runs using electron by default. I don't think I need the dashboard so I'll just use a standard test action for now (https://github.com/alpinejs/alpine-turbolinks-adapter/actions/runs/175728156). Thanks for your advice, cypress seems way easier than puppeteer. 👍
from alpine-turbo-drive-adapter.
Related Issues (20)
- Missing readme
- Disappearing template loop items HOT 7
- x-for elements disappearing after Livewire rerender HOT 11
- v0.2.0 - x-for loop items disappear HOT 3
- Use Alpine.clone to avoid existing component being reset when navigating using the history. HOT 7
- IE 11 support HOT 4
- Turbo Drive compatibility HOT 12
- Issue with data-turbolinks-permanent combined with x-cloak HOT 3
- fail when render status: :unprocessable_entity HOT 32
- JS file always runs after the turbo:load event, causing x-data to throw a ReferenceError on first navigation HOT 6
- Turbo stream - not initialising HOT 5
- after fired turbo:render x-data not exists HOT 12
- Currently Breaks with Alpine.js & Livewire HOT 14
- Add github action to publish the library on npm when a new version is tagged. HOT 1
- Alpine v3 compatability HOT 36
- How can I keep the cdn link updated HOT 5
- Necessary if caching disabled? HOT 1
- Add npm instructions HOT 3
- Components hidden by default, such as mobile navigation menus, get cached and cause flickering when navigating between pages. HOT 19
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from alpine-turbo-drive-adapter.