(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:
Jarosław Sadziński 2023-09-26 10:11:09 +02:00
parent c7bdeaab85
commit b2ac603ae7
2 changed files with 8 additions and 0 deletions

View File

@ -104,6 +104,10 @@ describe('CustomWidgets', function () {
await driver.executeScript('window.gristConfig.enableWidgetRepository = true;');
});
after(async function() {
await server.testingHooks.setWidgetRepositoryUrl('');
});
// Open or close widget menu.
const toggle = () => driver.find('.test-config-widget-select .test-select-open').click();
// Get current value from widget menu.

View File

@ -218,6 +218,10 @@ describe('CustomWidgetsConfig', function () {
await gu.selectSectionByTitle('Widget');
});
after(async function() {
await server.testingHooks.setWidgetRepositoryUrl('');
});
// Poor man widget rpc. Class that invokes various parts in the tester widget.
class Widget {
constructor() {}