Skip to content

Commit

Permalink
Fix broken widget tests
Browse files Browse the repository at this point in the history
  • Loading branch information
DonJayamanne committed Jan 17, 2025
1 parent a924a45 commit 6bbd105
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,7 @@ suite('Standard IPyWidget Tests @widgets', function () {

await executeCellAndWaitForOutput(cell, comms);
await assertOutputContainsHtml(cell, comms, ['Text Value is Foo']);
assert.strictEqual(cell.outputs.length, 4, 'Cell should have 4 outputs');
assert.strictEqual(cell.outputs.length, 3, 'Cell should have 3 outputs');

// This cannot be displayed by output widget, hence we need to handle this.
// One of the outputs if a custom mimetype.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ import { isWeb } from '../../../platform/common/utils/misc';
const cell = window.activeNotebookEditor!.notebook.cellAt(1);

await executeCellAndWaitForOutput(cell, comms);
await assertOutputContainsHtml(cell, comms, ['>m<', '>b<', '<img src="data:image']);
await assertOutputContainsHtml(cell, comms, ['>m<', '>b<', '<img src="']);
});
test('Render matplotlib, non-interactive inline', async function () {
await initializeNotebookForWidgetTest(disposables, {
Expand Down

0 comments on commit 6bbd105

Please sign in to comment.