浏览代码

fixed up toolbar icon-related unittests

telamonian 5 年之前
父节点
当前提交
09663dfc21
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      tests/test-apputils/src/toolbar.spec.ts

+ 4 - 4
tests/test-apputils/src/toolbar.spec.ts

@@ -286,20 +286,20 @@ describe('@jupyterlab/apputils', () => {
       });
       });
 
 
       describe('.createInterruptButton()', () => {
       describe('.createInterruptButton()', () => {
-        it("should have the `'jp-StopIcon'` class", async () => {
+        it("should add an inline svg node with the 'stop' icon", async () => {
           const button = Toolbar.createInterruptButton(session);
           const button = Toolbar.createInterruptButton(session);
           Widget.attach(button, document.body);
           Widget.attach(button, document.body);
           await framePromise();
           await framePromise();
-          expect(button.node.querySelector('.jp-StopIcon')).to.exist;
+          expect(button.node.querySelector("[data-icon='stop']")).to.exist;
         });
         });
       });
       });
 
 
       describe('.createRestartButton()', () => {
       describe('.createRestartButton()', () => {
-        it("should have the `'jp-RefreshIcon'` class", async () => {
+        it("should add an inline svg node with the 'refresh' icon", async () => {
           const button = Toolbar.createRestartButton(session);
           const button = Toolbar.createRestartButton(session);
           Widget.attach(button, document.body);
           Widget.attach(button, document.body);
           await framePromise();
           await framePromise();
-          expect(button.node.querySelector('.jp-RefreshIcon')).to.exist;
+          expect(button.node.querySelector("[data-icon='refresh']")).to.exist;
         });
         });
       });
       });