Comments (7)
Thanks you're the best !!! And how can I automate testing for multiple browsers without copy pasting the same script with different browsers/browser versions ? (Sorry I'm trying to learn)
from jest-environment-browserstack.
Awesome !!! I'll work on it thanks !
from jest-environment-browserstack.
Hi,
It's explained in the README. The browser settings can be overridden at runtime in your beforeAll or beforeEach hook.
from jest-environment-browserstack.
Sorry, I wasn't able to make it work. Can you provide an example of how to make it work for both chrome and firefox in one run ? Thank you
from jest-environment-browserstack.
Hi,
You can find in the repositories a bunch of examples.
This file shows how to override the capabilities: https://github.com/taktakpeops/jest-environment-browserstack/blob/master/packages/core/src/__tests__/switch.spec.ts
from jest-environment-browserstack.
As we are talking about JavaScript, you could keep your different browsers definition in a file that you import whenever it's needed.
If you have a gist or a repo with an example of what you want to achieve, feel free to share it here, I will review it and share feedback.
from jest-environment-browserstack.
Closing the issue for now. Feel free to open a new one if you find something else.
from jest-environment-browserstack.
Related Issues (7)
- Make unit-tests and integration tests more stable HOT 1
- Visual Testing is causing "Test environment browserstack cannot be found" when using node 12 HOT 4
- BROWSERSTACK environment variables are not been used HOT 2
- Migrate to w3c-webdriver HOT 1
- Is there a way to take a screenshot of the the entire page? HOT 3
- Not published to npm registry HOT 2
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 jest-environment-browserstack.