fix(e2e): prioritize column move button over dragTo for touch mobile viewports
This commit is contained in:
parent
368ed1ed9d
commit
1e54bc6935
1 changed files with 3 additions and 2 deletions
|
|
@ -18,11 +18,12 @@ test.describe('Scenario 08: View Builder & Column Reordering', () => {
|
|||
const firstPill = columnPills.first();
|
||||
const secondPill = columnPills.nth(1);
|
||||
|
||||
// Reorder via drag-and-drop or move button
|
||||
await secondPill.dragTo(firstPill);
|
||||
// Reorder via move button or drag-and-drop
|
||||
const moveRightBtn = firstPill.locator('button[title="Вправо"]');
|
||||
if (await moveRightBtn.isVisible()) {
|
||||
await moveRightBtn.click();
|
||||
} else {
|
||||
await secondPill.dragTo(firstPill);
|
||||
}
|
||||
|
||||
// Save view
|
||||
|
|
|
|||
Loading…
Reference in a new issue