Kaynağa Gözat

Fix focus accept button on dialog unit test (#10303)

* Fix focus accept button on dialog unit test

* Fix lint error
Frédéric Collonval 3 yıl önce
ebeveyn
işleme
6da7eb9758
1 değiştirilmiş dosya ile 1 ekleme ve 0 silme
  1. 1 0
      packages/apputils/test/dialog.spec.tsx

+ 1 - 0
packages/apputils/test/dialog.spec.tsx

@@ -240,6 +240,7 @@ describe('@jupyterlab/apputils', () => {
         it('should focus the default button when focus leaves the dialog', async () => {
           const host = document.createElement('div');
           const target = document.createElement('div');
+          target.tabIndex = 0; // Make the div element focusable
           const dialog = new TestDialog({ host });
 
           document.body.appendChild(target);