Skip to content
This repository was archived by the owner on Oct 1, 2024. It is now read-only.

Commit fb92c5a

Browse files
committed
Fix casper smoke test
1 parent 3dae1bc commit fb92c5a

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

test/casper/tests/smoke_test.js

+5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
var util = require('../util/test_util.js');
22

3+
casper.options.viewportSize = {width: 1024, height: 768}
4+
casper.options.onError = function() {
5+
casper.capture("error_screenshot.png");
6+
};
7+
38
casper.test.begin('Freeboard smoke test', function testFunction(test)
49
{
510
casper.start(util.FREEBOARD_URL, function()

test/casper/util/test_util.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ var SELECTORS = {
2525
autofillDatasource : '#modal_overlay #setting-value-container-value li i.icon-plus',
2626
autofillMenu : '#modal_overlay #value-selector',
2727
autofillMenuItem : '#modal_overlay #value-selector li:nth-child(%s)',
28-
singlePaneTextWidget : '#board-content li section div.text-widget-regular-value',
28+
singlePaneTextWidget : '#board-content li section div.tw-value',
2929
trashWidget : '#board-content li section i.icon-trash',
3030
trashPane : '#board-content li header i.icon-trash',
3131
trashDatasource : '#datasources table#datasources-list i.icon-trash'

0 commit comments

Comments
 (0)