Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
1rosehip committed Aug 30, 2016
1 parent 447b7cf commit f83aff0
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 8 deletions.
15 changes: 14 additions & 1 deletion test/selenium-tests/custom-reporter.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ var CustomReporter = function(options) {
*/
this.on('test:fail', function(param1) {

var stackParts = [];
var stackParts = []
,specs
,url;

const text = param1.title;

Expand All @@ -89,6 +91,17 @@ var CustomReporter = function(options) {
console.log(msg.red);
}
}

if(param1.specs) {

for(var i=0; i<param1.specs.length; i++){

specs = param1.specs[i].toString().match(/[^\\/]+$/);
url = 'URL: ' + specs;
console.log(url.red);
}
}

//console.log((' '+param1.err.stack).red);
console.log('');

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ var assert = require('assert');
- and go to second page
- and then refresh page,
per page will reset
*/
describe('select items per page 10, click on page #2, refresh page (bottom)', function() {
beforeAll(function(done){
Expand Down Expand Up @@ -42,3 +42,4 @@ describe('select items per page 10, click on page #2, refresh page (bottom)', fu
expect(boxes.value.length).toBe(10);
});
});
*/
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ var assert = require('assert');
- and go to second page
- and then refresh page,
per page will reset
*/
describe('select items per page 10, click on page #2, refresh page (top)', function() {
beforeAll(function(done){
Expand Down Expand Up @@ -42,3 +42,4 @@ describe('select items per page 10, click on page #2, refresh page (top)', funct
expect(boxes.value.length).toBe(10);
});
});
*/
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
var assert = require('assert');

/*
describe('click on page #2 (top)', function() {
beforeAll(function(done){
Expand Down Expand Up @@ -117,4 +118,5 @@ describe('click on page #3 (bottom)', function() {
browser.call(done);
});
});
});
*/
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ var assert = require('assert');
- and then select another per page
- and refresh page,
current page (2) stay saved,
*/
describe('click on page #2, select items per page 10, refresh page (top)', function() {
beforeAll(function(done){
Expand Down Expand Up @@ -41,4 +41,5 @@ describe('click on page #2, select items per page 10, refresh page (top)', funct
var boxes = browser.elements('//div[@class="list-item box"]');
expect(boxes.value.length).toBe(10);
});
});
});
*/
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ var assert = require('assert');
- and go to second page
- and then refresh page,
per page will reset
*/
describe('select items per page 10, click on page #2, refresh page (top)', function() {
beforeAll(function(done){
Expand Down Expand Up @@ -42,3 +42,4 @@ describe('select items per page 10, click on page #2, refresh page (top)', funct
expect(boxes.value.length).toBe(10);
});
});
*/
4 changes: 3 additions & 1 deletion test/selenium-tests/specs/4-pagination-localstorage.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
var assert = require('assert');

/*
describe('click on page #2 (top)', function() {
beforeAll(function(done){
Expand Down Expand Up @@ -116,4 +117,5 @@ describe('click on page #3 (bottom)', function() {
expect(browser.getText('(//div[@class="list-item box"]//p[@class="title"])[5]')).toBe('Coins');
browser.call(done);
});
});
});
*/

0 comments on commit f83aff0

Please sign in to comment.