Skip to content

Commit ea06744

Browse files
committed
Fix test in FF
1 parent a84c72e commit ea06744

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

test/browser/dragFill.test.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,9 @@ test('should update single row using mouse', async () => {
7070
await commands.dragFill('a1', 'a2');
7171
await expect.element(getCellsAtRowIndex(1)[0]).toHaveTextContent('a1');
7272
await expect.element(getCellsAtRowIndex(2)[0]).toHaveTextContent('a3');
73-
await expect.element(getCellsAtRowIndex(0)[0]).toHaveFocus();
73+
// https://bugzilla.mozilla.org/show_bug.cgi?id=1961462
74+
const rowIdx = navigator.userAgent.includes('Firefox') ? 1 : 0;
75+
await expect.element(getCellsAtRowIndex(rowIdx)[0]).toHaveFocus();
7476
});
7577

7678
test('should update multiple rows using mouse', async () => {

0 commit comments

Comments
 (0)