Skip to content

Instantly share code, notes, and snippets.

View carrodher's full-sized avatar

Carlos Rodríguez Hernández carrodher

View GitHub Profile
@carrodher
carrodher / login.js
Created November 12, 2018 18:57
Login test
casper.options.viewportSize = {width: 1280, height: 639};
const testingMode = process.env.TESTING_MODE;
const httpUrl = 'http://cms-' + testingMode + '-node:3000'
casper.test.begin('Login Test', function(test) {
casper.start(httpUrl);
casper.waitForText('Welcome to my new Blog', function() {
this.test.assertTextExists('Welcome to my new Blog', '"Welcome to my new Blog" text appears');
@carrodher
carrodher / clickOnPageMenu.js
Created November 12, 2018 18:54
Click on page menu test
casper.options.viewportSize = {width: 1280, height: 639};
const testingMode = process.env.TESTING_MODE;
const httpUrl = 'http://cms-' + testingMode + '-node:3000'
casper.test.begin('Click Page Menu Test', function(test) {
casper.start(httpUrl);
casper.waitForText('Welcome to my new Blog', function() {
this.test.assertTextExists('Welcome to my new Blog', '"Welcome to my new Blog" text appears');
### Keybase proof
I hereby claim:
* I am carrodher on github.
* I am crhernandez (https://keybase.io/crhernandez) on keybase.
* I have a public key ASAy_mtVxQxCSiKHZoofcCidgcBxL0qqA7StgU3U--5yQQo
To claim this, I am signing this object: