Javascript
-
5 free coding games where you write javascript to play
If you're itching to write some code, but you can't stand the thought of another MEAN, MERN, or PERN stack, here's a few resources to help you explore javascript using a slightly different approach -...
read article -
How to handle API errors in your web app using axios
Note: If you want to see how to handle these in React, take a look at my new post on that here - handling async errors with axios in react. Whenever you're making a backend API call with axios, you...
read article -
Creating a simple npm library to use in and out of the browser
Sharing some reusable javascript is hard - even moreso if you're trying to share between node and the browser. I'm just trying to share some 10 lines of code. Why is this taking me more than a day to...
read article -
Using Angular innerHtml to display user-generated content without sacrificing security
Why do some of your styles no longer work when using [innerHtml] to show some HTML content? Angular comes with a built-in html sanitizer DomSanitizer, as a security feature, thats used whenever you...
read article -
Adding Google Sign-in to your webapp - using the JS library
In the first part of the series, we decided to use the Google Sign-In for websites library to allow you to show some info about the user using javascript. In that part, we use the default Google...
read article -
Adding Google Sign-in to your webapp - Hello World
[embed]https://youtu.be/KwOmVpd1DUA[/embed] *Check out the video to see me follow along with the code. Gotten stuck in a rabbit hole figuring out how to add "Log In with Google" to your web...
read article -
Rerunning test suites with webdriverio and a failed suite reporter
UI browser tests can be flaky, and it can be really frustrating to have to re-run a test suite because 1/50 tests failed and most likely, it'll work on the next run. webdriverio offers retries but...
read article -
Can I use jest to run webdriverio tests?
Can I use jest to run webdriverio tests? You have a web app and you're using jest for unit testing your components. You're checking out webdriverio to run your UI tests in javascript. Webdriverio...
read article -
WebdriverIO tips: element wrapped in div is not clickable
Have you run into an error saying "Element is not clickable at point" when you're trying to click a button? You might be seeing this if you have a spinner that appears on your buttons or its...
read article -
WebdriverIO tips: finding your errors when using waitUntil
If you're loading a page and want to make sure that some elements are showing up before advancing, you'd be inclined to use browser.waitUntil(). While it does do the job, it holds onto the errors...
read article -
WebdriverIO tips: get text from a list of items
There's a few ways to go about getting text from a list of elements, but there's a gotcha with webdriverIO that can make your tests a lot flakier. The easiest way should be to: // get some of the...
read article -
WebdriverIO tips: using $$(selector) vs browser.elements(selector)
Last week, I started working on integrating a test suite previously built using Nightwatch, and making it work with webdriverIO. While I love all of webdriverIO's features like synchronous code when...
read article -
Simple automated testing for a static website with Nightwatch.js
If you're following along, in my previous post, i was building a blog with gatsby. Now that I've got some changes made to my blog, I want to make sure that the blog is loading at least and click...
read article -
Building a blog with Gatsby
Create a blog using HTML and JS In this section, we're going to set up our new Gatsby project as a blog, add a few posts, and get a blog working locally. Pre-requisites: node v8 npm git You should...
read article