Fix casper smoke test

pull/78/head
Kyle Campbell 2014-11-21 20:26:45 -05:00
parent 3dae1bcbaf
commit fb92c5a3db
2 changed files with 6 additions and 1 deletions

View File

@ -1,5 +1,10 @@
var util = require('../util/test_util.js');
casper.options.viewportSize = {width: 1024, height: 768}
casper.options.onError = function() {
casper.capture("error_screenshot.png");
};
casper.test.begin('Freeboard smoke test', function testFunction(test)
{
casper.start(util.FREEBOARD_URL, function()

View File

@ -25,7 +25,7 @@ var SELECTORS = {
autofillDatasource : '#modal_overlay #setting-value-container-value li i.icon-plus',
autofillMenu : '#modal_overlay #value-selector',
autofillMenuItem : '#modal_overlay #value-selector li:nth-child(%s)',
singlePaneTextWidget : '#board-content li section div.text-widget-regular-value',
singlePaneTextWidget : '#board-content li section div.tw-value',
trashWidget : '#board-content li section i.icon-trash',
trashPane : '#board-content li header i.icon-trash',
trashDatasource : '#datasources table#datasources-list i.icon-trash'