-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
107 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Feature: Teste open page | ||
I will test the open page of app | ||
|
||
Scenario: Try open the initial page | ||
Given the initial page | ||
And I have the content table in body | ||
Then I should have a title "Projeto Crud - localStorage" on page |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
let seleniumWebdriver = require('selenium-webdriver'); | ||
let {defineSupportCode} = require('cucumber'); | ||
|
||
defineSupportCode(function({Given, When, Then}) { | ||
Given('the initial page', function() { | ||
return this.driver.get('http://localhost:8080/'); | ||
}); | ||
|
||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
require('chromedriver'); | ||
var seleniumWebdriver = require('selenium-webdriver'); | ||
var {defineSupportCode} = require('cucumber'); | ||
|
||
function CustomWorld() { | ||
this.driver = new seleniumWebdriver.Builder() | ||
.forBrowser('chrome') | ||
.build(); | ||
} | ||
|
||
defineSupportCode(function({setWorldConstructor}) { | ||
setWorldConstructor(CustomWorld) | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,24 @@ | ||
// This will search for files ending in .test.js and require them | ||
// so that they are added to the webpack bundle | ||
let context = require.context('.', true, /.+\.test\.js?$/); | ||
context.keys().forEach(context); | ||
module.exports = context; | ||
describe ('Interface', ()=>{ | ||
|
||
describe ('Create Elements',()=>{ | ||
it ('should return 3 panels', () =>{ | ||
expect("1").to.equal("1"); | ||
}); | ||
it ('should add fields', () =>{ | ||
expect("1").to.equal("1"); | ||
}) | ||
}); | ||
describe ('Vallidate Masks',()=>{ | ||
it ('mask phone', () =>{ | ||
expect("1").to.equal("1"); | ||
}); | ||
it ('mask cpf', () =>{ | ||
expect("1").to.equal("1"); | ||
}) | ||
}) | ||
describe ('Check address field',()=>{ | ||
it ('load google place autocomplete', () =>{ | ||
expect("1").to.equal("1"); | ||
}); | ||
}) | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
|
||
--require babel-polyfill | ||
--require test/helpers.js | ||
--reporter spec | ||
--compilers js:babel-core/register | ||
--slow 5000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import $ from '../../src/utils/elementSelector'; | ||
|
||
describe('Element selector Class', ()=>{ | ||
//const table = document.getElementById('tablerows'); | ||
it ('should return a element by id',()=>{ | ||
//expect($.id(tablerows)).to.equal(table); | ||
}); | ||
|
||
it ('show add event listener to multi element equals ', ()=>{ | ||
|
||
}); | ||
|
||
|
||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
describe('LocalStorage', ()=>{ | ||
it ('should initialize elements on table if there something',()=>{ | ||
expect("1").to.equal("1"); | ||
}); | ||
|
||
it ('Should add new contact', ()=>{ | ||
|
||
}); | ||
|
||
it ('Should Edit contact', ()=>{ | ||
|
||
}); | ||
|
||
it ('Should Delete contact', ()=>{ | ||
|
||
}); | ||
|
||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters