Skip to content

Instantly share code, notes, and snippets.

View tuliobluz's full-sized avatar

Túlio Luz tuliobluz

  • Berlin, Germany
View GitHub Profile
@tuliobluz
tuliobluz / spec.po.js
Last active November 15, 2018 10:21
spec.po.js
let nameInput,
greeting;
module.exports = {
init: () => {
nameInput = element(by.model('yourName'));
greeting = element(by.binding('yourName'));
},
get: (string) => {
@tuliobluz
tuliobluz / spec.spec.js
Last active August 1, 2018 13:18
spec.spec.js
let specPage = require('../pages/spec.po.js');
let chai = require('chai');
let chaiAsPromised = require('chai-as-promised');
chai.use(chaiAsPromised);
let expect = chai.expect;
Before(function(){
specPage.init();
})
@tuliobluz
tuliobluz / spec.feature
Created June 11, 2018 17:41
spec.feature
Feature: Fill the name
Scenario: Fill the name to see with hello
Given The user go to "https://angularjs.org/"
When The user adds "Tulio" in the name field
Then The user should see Hello with the username