({page})
| 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'); |
| 150 | await page.locator(insertBetween(0, 1)).waitFor({state: 'attached'}); |
| 151 | await waitForFocus(page, insertBetween(0, 1)); |
| 152 | } |
| 153 | // Drag state is global, so it survives remounting the fixture for the next trial. |
| 154 | async function cancelReorder({page}) { |
| 155 | await page.keyboard.press('Escape'); |
no test coverage detected