Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
georgegevoian committed Nov 26, 2024
1 parent 5e9b657 commit 2cb8d05
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/nbrowser/CustomWidgets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -674,6 +674,13 @@ describe('CustomWidgets', function () {
(done: any) => (window as any).gristApp?.topAppModel.testReloadWidgets().then(done).catch(done) || done()
);
});

it("allows picking the same widget", async () => {
await gu.setCustomWidget(/W1/);
assert.equal(await gu.getCustomWidgetName(), "W1");
await gu.setCustomWidget(/W1/);
assert.equal(await gu.getCustomWidgetName(), "W1");
});
});

describe('gristApiSupport', async ()=>{
Expand Down

0 comments on commit 2cb8d05

Please sign in to comment.