Skip to content

Commit

Permalink
Merge pull request #773 from Teradata/feature/python-non-errors
Browse files Browse the repository at this point in the history
Handling Python kernel messages
  • Loading branch information
adamtwo authored Jan 7, 2025
2 parents eca47ac + 27a5799 commit a4d841d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .tests/tests/jupytertest.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,11 @@ for (let i = 0; i < testCount; i++) {
await page.locator('span[class="f1235lqo"] >> text="' + strKernelType + '| Idle"').waitFor({ timeout: 600000 });

//Check for any errors so far
await expect(page.locator(".jp-RenderedText[data-mime-type='application/vnd.jupyter.stderr']")).toHaveCount(0);
if(strKernelType === "Python 3 (ipykernel) "){
await expect(page.locator(".jp-RenderedText[data-mime-type='application/vnd.jupyter.stderr']").filter({ hasText: 'Traceback (most recent call last):' })).toHaveCount(0);
}else{
await expect(page.locator(".jp-RenderedText[data-mime-type='application/vnd.jupyter.stderr']")).toHaveCount(0);
}
await expect(page.locator(`div.jp-NotebookPanel:not(.p-mod-hidden)> div > div.jp-Cell:nth-child(${i})`)).toHaveClass(/jp-mod-active/);

//restart the kernel if the cell has 'zero zero' text
Expand Down

0 comments on commit a4d841d

Please sign in to comment.