Skip to content

Commit c01cced

Browse files
committed
fix playwright reorder issue
Signed-off-by: Roman Dmytrenko <[email protected]>
1 parent 332fa5f commit c01cced

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

ui/tests/rollouts.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ test.describe('Rollouts', () => {
156156
.first()
157157
.dragTo(
158158
page
159-
.getByTestId('rollout-1')
159+
.getByTestId('rollout-2')
160160
.getByRole('button', { name: 'Rollout' })
161161
.first()
162162
);

ui/tests/rules.spec.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,12 @@ test.describe('Rules', () => {
186186
.getByRole('button', { name: 'Rule' })
187187
.first()
188188
.dragTo(
189-
page.getByTestId('rule-0').getByRole('button', { name: 'Rule' }).first()
189+
page
190+
.getByTestId('rule-0')
191+
.getByRole('button', { name: 'Rule' })
192+
.first(),
193+
194+
{ force: true }
190195
);
191196
await page.getByRole('button', { name: 'Update' }).click();
192197
await expect(page.getByText('Successfully updated flag')).toBeVisible();

0 commit comments

Comments
 (0)