Skip to content

Commit 3bf6551

Browse files
committed
Fix screenshot for full-width attachment bar
1 parent 1d7a330 commit 3bf6551

7 files changed

Lines changed: 6 additions & 6 deletions

File tree

__tests__/html2/sendBox/previewBeforeSend/deleteButton.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@
4242

4343
await waitFor(() => expect(queryAllByTestId(document, testIds.sendBoxAttachmentBarItem)).toHaveLength(1));
4444

45-
// WHEN: Press TAB key.
46-
await host.sendKeys('TAB');
45+
// WHEN: Press TAB key twice to move the focus to the delete button.
46+
await host.sendKeys('TAB', 'TAB');
4747

4848
// THEN: Should focus on the attachment delete button.
4949
expect(document.activeElement.getAttribute('data-testid')).toBe(testIds.sendBoxAttachmentBarItemDeleteButton);
5.85 KB
Loading

__tests__/html2/sendBox/previewBeforeSend/deleteButtonInTextMode.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@
4848
);
4949
}
5050

51-
// WHEN: Press TAB key twice.
52-
await host.sendKeys('TAB');
51+
// WHEN: Press TAB key twice to move the focus to the delete button.
52+
await host.sendKeys('TAB', 'TAB');
5353

5454
// THEN: Should focus on the attachment delete button of the 4th attachment.
5555
expect(document.activeElement.getAttribute('data-testid')).toBe(testIds.sendBoxAttachmentBarItemDeleteButton);
51.7 KB
Loading

__tests__/html2/sendBox/previewBeforeSend/escapeKey.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@
4242

4343
await waitFor(() => expect(queryAllByTestId(document, testIds.sendBoxAttachmentBarItem)).toHaveLength(1));
4444

45-
// WHEN: Press TAB key.
46-
await host.sendKeys('TAB');
45+
// WHEN: Press TAB key twice to move the focus to the delete button.
46+
await host.sendKeys('TAB', 'TAB');
4747

4848
// THEN: Should focus on the attachment delete button.
4949
expect(document.activeElement.getAttribute('data-testid')).toBe(testIds.sendBoxAttachmentBarItemDeleteButton);
22.3 KB
Loading
43 Bytes
Loading

0 commit comments

Comments
 (0)