Skip to content Skip to sidebar Skip to footer
Showing posts with the label Testing

Extending Supertest

I like to use SuperTest to work with my auth system like this: const request = require('./v… Read more Extending Supertest

Making Both Parts Of Expect Resolve Promises

The Problem: In Protractor, expect() is patched to implicitly understand promises which enables a s… Read more Making Both Parts Of Expect Resolve Promises

Puppeteer | Wait For All Javascript Is Executed

I try to take screenshots from multiple pages, which should be fully loaded (including lazy loaded … Read more Puppeteer | Wait For All Javascript Is Executed

Check There Were No Errors In The Browser Console With Protractor

I'm using Protractor to test AngularJS I want to check that at the end of the test no uncaught … Read more Check There Were No Errors In The Browser Console With Protractor

Clicking 'ok' On Alert Or Confirm Dialog Through Jquery/javascript?

I was thinking of writing some UI tests in backbone.js and jquery. They may not be the best way to … Read more Clicking 'ok' On Alert Or Confirm Dialog Through Jquery/javascript?

Testcafe Clientfunction Typeerror Error As Document Is Undefined

I can successfully execute the following .click: const clickMockContinueButton = ClientFunction(() … Read more Testcafe Clientfunction Typeerror Error As Document Is Undefined