Skip to content

Instantly share code, notes, and snippets.

Avatar

Carlos Rodríguez Hernández carrodher

View GitHub Profile
View login.js
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 Nov 12, 2018
Click on page menu test
View clickOnPageMenu.js
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');
View gist:13e61e11b5d75097244250718376af8b
### 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: