mirror of
https://github.com/gristlabs/grist-core.git
synced 2024-10-27 20:44:07 +00:00
(core) Clearing widget repo state after tests.
Summary: Fixing tests by, clearing wiget repository state after tests. Test Plan: existing Reviewers: JakubSerafin Reviewed By: JakubSerafin Differential Revision: https://phab.getgrist.com/D4058
This commit is contained in:
parent
c7bdeaab85
commit
b2ac603ae7
@ -104,6 +104,10 @@ describe('CustomWidgets', function () {
|
|||||||
await driver.executeScript('window.gristConfig.enableWidgetRepository = true;');
|
await driver.executeScript('window.gristConfig.enableWidgetRepository = true;');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
after(async function() {
|
||||||
|
await server.testingHooks.setWidgetRepositoryUrl('');
|
||||||
|
});
|
||||||
|
|
||||||
// Open or close widget menu.
|
// Open or close widget menu.
|
||||||
const toggle = () => driver.find('.test-config-widget-select .test-select-open').click();
|
const toggle = () => driver.find('.test-config-widget-select .test-select-open').click();
|
||||||
// Get current value from widget menu.
|
// Get current value from widget menu.
|
||||||
|
@ -218,6 +218,10 @@ describe('CustomWidgetsConfig', function () {
|
|||||||
await gu.selectSectionByTitle('Widget');
|
await gu.selectSectionByTitle('Widget');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
after(async function() {
|
||||||
|
await server.testingHooks.setWidgetRepositoryUrl('');
|
||||||
|
});
|
||||||
|
|
||||||
// Poor man widget rpc. Class that invokes various parts in the tester widget.
|
// Poor man widget rpc. Class that invokes various parts in the tester widget.
|
||||||
class Widget {
|
class Widget {
|
||||||
constructor() {}
|
constructor() {}
|
||||||
|
Loading…
Reference in New Issue
Block a user