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 firstPill = columnPills.first();
const secondPill = columnPills.nth(1); const secondPill = columnPills.nth(1);
// Reorder via drag-and-drop or move button // Reorder via move button or drag-and-drop
await secondPill.dragTo(firstPill);
const moveRightBtn = firstPill.locator('button[title="Вправо"]'); const moveRightBtn = firstPill.locator('button[title="Вправо"]');
if (await moveRightBtn.isVisible()) { if (await moveRightBtn.isVisible()) {
await moveRightBtn.click(); await moveRightBtn.click();
} else {
await secondPill.dragTo(firstPill);
} }
// Save view // Save view