Procházet zdrojové kódy

fixed up toolbar icon-related unittests

telamonian před 5 roky
rodič
revize
09663dfc21
1 změnil soubory, kde provedl 4 přidání a 4 odebrání
  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()', () => {
-        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);
           Widget.attach(button, document.body);
           await framePromise();
-          expect(button.node.querySelector('.jp-StopIcon')).to.exist;
+          expect(button.node.querySelector("[data-icon='stop']")).to.exist;
         });
       });
 
       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);
           Widget.attach(button, document.body);
           await framePromise();
-          expect(button.node.querySelector('.jp-RefreshIcon')).to.exist;
+          expect(button.node.querySelector("[data-icon='refresh']")).to.exist;
         });
       });