{"repo":"nuxt-contrib/tib","free":true,"listed":false,"github":"https://github.com/nuxt-contrib/tib","clone":"git clone https://github.com/nuxt-contrib/tib.git","description":"Easy e2e browser testing in Node","language":"JavaScript","stars":65,"topics":["e2e","test","browser","selenium","puppeteer","browserstack","end-to-end","webdriver","jsdom"],"license":null,"category":"scrapers-browser-automation","readme_excerpt":"test in browser (tib) Helper classes for e2e browser testing in Node with a uniform interface. Introduction tib aims to provide a uniform interface for testing with both jsdom, Puppeteer and Selenium while using either local browsers or a 3rd party provider. This way you can write a single e2e test and simply switch the browser environment by changing the BrowserString The term helper classes stems from that this package wont enforce test functionality on you (which would require another learning curve). tib allows you to use the test suite you are already familair with. Use tib to retrieve and assert whether the html you expect to be loaded is really loaded, both on page load as after interacting with it through javascript. Supported browsers/drivers/providers: - Puppeteer - \\-core - Selenium - Firefox - Chrome - Safari - IE ( untested ) - Edge ( untested ) - jsdom - BrowserStack All browser/provider specific dependencies are peer dependencies and are dynamically loaded. You only need to install the peer-dependencies you plan to use Features - Retrieve html as ASTElements (using vue-template-compiler ) - Very easy to write page function to run in the browser - just remember to only use language features the loaded page already has polyfills for - syntax is automatically transpiled when browser version is specified - e.g. arrow functions will be transpiled to normal functions when you specify 'safari 5.1' - Supports BrowserStack-Local to easily tests local html files - Serve ","default_branch":null,"files":null,"tree":[],"storefront":"/r/nuxt-contrib","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/nuxt-contrib/tib/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}