Skip to content

Commit f206bb3

Browse files
committed
update Dashboard_spec.js so that the test for dashboard4 does not get live rss widget
1 parent df0bea6 commit f206bb3

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

plugins/Dashboard/tests/UI/Dashboard_spec.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,13 @@ describe("Dashboard", function () {
5656
await page.waitForNetworkIdle();
5757
await page.evaluate(() => { // give table headers constant width so the screenshot stays the same
5858
$('.dataTableScroller').css('overflow-x', 'scroll');
59+
$('[widgetid="widgetRssWidgetrssChangelog"] .widgetContent').html(
60+
'<div style="padding:10px 15px;"><ul class="rss"><li>' +
61+
'<div class="rss-description">Changed to something static for tests</div>' +
62+
'</li></ul></div>'
63+
);
5964
});
60-
await page.waitForTimeout(500);
65+
await page.waitForTimeout(100);
6166
pageWrap = await page.$('.pageWrap');
6267
expect(await pageWrap.screenshot()).to.matchImage('dashboard4');
6368
});

0 commit comments

Comments
 (0)