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 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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue