Selenium based abstractions of KendoUI components.
Example:
const browser = new Browser();
await browser.navigateTo("https://www.telerik.com/")
await browser.close();
By default it will start Chrome browser with size 1366x768.
Browser type and size can be controlled by settings following environment variables:
-
BROWSER_NAME
Allowed values are
chrome
,firefox
andsafari
(default ischrome
). -
BROWSER_WIDTH
andBROWSER_HEIGHT
Default values are
1366
and768
. -
HEADLESS
If set to
true
it will start browsers in headless mode (default isfalse
).Notes:
Safari
do not support headless mode and this setting will be ignored.
Testing on mobile devices is also important, but usually it is hard to do it locally because:
- Mobile devices are expensive
- Local labs do not work well in case employees are distributed
That is why we implemented BrowserStack support.
Running tests on BrowserStack is similar to ruining them locally, we just need to tell what device and capabilities we need.
Configuration happens via environment variables:
export BROWSER_NAME=remote
export BS_USER_NAME=<your browser stack user id>
export BS_ACCESS_KEY=<your browser stack access key>
export BS_BROWSER_NAME=<Android|iPhone> (default is "Android")
export BS_BROWSER_NAME=<version of the mobile os> (default is "10.0")
export BS_DEVICE_NAME=<name of device> (default is "Google Pixel 4")
export BS_REAL_MOBILE=<true|false> (default is "true")
export BS_LOCAL=<true|false> (default is "false")
export BS_BUILD_NAME=<string> (default is "BStack Test")
export BS_BUILD_NUMBER=<string> (default is "BStack Build 1")
To check available mobile devices and capabilities please visit this page.
TODO
TODO
TODO
TODO
TODO
PRs are welcome!
Lint:
npm run lint
Build:
npm run build
Run tests:
npm run tests:e2e
- Configuring Jest from official docs
- facebook/jest/examples are official demos
- jest-image-snapshot) looks awesome for visual regression testing
- jest-webdriver looks abandoned, but nice ideas
- jest-allure/examples shows e2e testing with global setup and teardown.
- visual-unit-tests one more e2e demo with allure
- Jest Runner is awesome extension that makes it easy to run tests inside IDE.