fix(e2e): prioritize column move button over dragTo for touch mobile viewports

This commit is contained in:
ochenstarik 2026-09-11 01:56:20 +07:00
parent 368ed1ed9d
commit 1e54bc6935

View file

@ -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