Skip to content

Commit

Permalink
Reduce flakiness of plan-merge test (#1228)
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronPlave authored May 2, 2024
1 parent 7698acc commit 42acb71
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion e2e-tests/tests/plan-merge.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,18 @@ test.describe.serial('Plan Merge', () => {
await page.getByRole('gridcell', { name: 'BiteBanana' }).first().click();
await page.waitForSelector('button:has-text("BiteBanana")', { state: 'visible' });
await page.locator('input[name="start-time"]').click();
// Wait for date input to be open before inputting a date
await page.waitForTimeout(500);
await page.locator('input[name="start-time"]').fill(newActivityStartTime);
await page.locator('input[name="start-time"]').press('Enter');
await page.waitForTimeout(250);
await plan.waitForToast('Activity Directive Updated Successfully');
});

test('Create a merge request from branch to parent plan', async () => {
await page.getByText(planBranchName).first().click();
await page.getByText('Create merge request').click();
await page.getByRole('button', { name: 'Create Merge Request' }).click();
await plan.waitForToast('Merge Request Created Successfully');
});

test('Switch to parent plan', async () => {
Expand Down

0 comments on commit 42acb71

Please sign in to comment.