(page, selector)
| 138 | // Keyboard drag starts from Record 0's drag button and targets drop indicators by label. |
| 139 | const insertBetween = (a, b) => `[aria-label="Insert between Record ${a} and Record ${b}"]`; |
| 140 | const waitForFocus = (page, selector) => |
| 141 | page.waitForFunction( |
| 142 | // Fixtures live in the top-level document, with no shadow roots. |
| 143 | // oxlint-disable-next-line rsp-rules/shadow-safe-active-element |
| 144 | selector => document.activeElement === document.querySelector(selector), |
| 145 | selector |
| 146 | ); |
| 147 | async function startReorder({page}) { |
| 148 | await page.locator('[data-record="item-0"] [slot="drag"]').focus(); |
| 149 | await page.keyboard.press('Enter'); |
no outgoing calls
no test coverage detected