Skip to content

Commit

Permalink
Restore disabled widget tests (#16308)
Browse files Browse the repository at this point in the history
  • Loading branch information
DonJayamanne authored Dec 18, 2024
1 parent 1f522b0 commit afaf622
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ suite('Standard IPyWidget Tests @widgets', function () {
// Also display the same nested output and the widget in the 3rd cell.
await Promise.all([runCell(cell3), waitForCellExecutionToComplete(cell3)]);
await assertOutputContainsHtml(cell1, comms, ['<input type="text'], '.widget-output');
// await assertOutputContainsHtml(cell1, comms, ['<input type="text', 'Label Widget'], '.widget-output');
await assertOutputContainsHtml(cell1, comms, ['<input type="text', 'Label Widget'], '.widget-output');
assert.strictEqual(cell3.outputs.length, 0, 'Cell 3 should not have any output');

// Run the 4th cell & verify we have output in the first nested output & second output.
Expand All @@ -343,11 +343,11 @@ suite('Standard IPyWidget Tests @widgets', function () {
);
assert.strictEqual(cell3.outputs.length, 0, 'Cell 3 should not have any output');

// // Verify both textbox widgets are linked.
// // I.e. updating one textbox will result in the other getting updated with the same value.
// await comms.setValue(cell1, '.widget-text input', 'Widgets are linked an get updated');
// await assertOutputContainsHtml(cell1, comms, ['>Widgets are linked an get updated<'], '.widget-output');
// assert.strictEqual(cell3.outputs.length, 0, 'Cell 3 should not have any output');
// Verify both textbox widgets are linked.
// I.e. updating one textbox will result in the other getting updated with the same value.
await comms.setValue(cell1, '.widget-text input', 'Widgets are linked an get updated');
await assertOutputContainsHtml(cell1, comms, ['>Widgets are linked an get updated<'], '.widget-output');
assert.strictEqual(cell3.outputs.length, 0, 'Cell 3 should not have any output');
});
test('More Nested Output Widgets', async () => {
await initializeNotebookForWidgetTest(
Expand Down

0 comments on commit afaf622

Please sign in to comment.