chadtmiller.com/knotless
git that lives in your Atmosphere account
1
10
The e2e merge flow waits as long for the merge as compacting does
harness/e2e/flows.spec.mjs+3−2
| @@ -228,9 +228,10 @@ test('merging a pull', async () => { | ||
await page.locator('.merge-box').getByRole('button', { name: 'Merge pull' }).click() | ||
// The page asks its answers again once merged, and the thread says so, | ||
// with a way to revert it, in place of the box: the box's own word for | ||
// it shows only until then, which can be no time at all. | ||
// it shows only until then, which can be no time at all. A merge is | ||
// several writes to the PDS, as compacting is, so it gets as long. | ||
const said = page.locator('.event', { hasText: 'Merged as' }) | ||
await expect(said.getByText(/^[0-9a-f]{7}$/)).toBeVisible() | ||
await expect(said.getByText(/^[0-9a-f]{7}$/)).toBeVisible({ timeout: 30_000 }) | ||
const sha = await said.getByText(/^[0-9a-f]{7}$/).innerText() | ||
await expect(page.getByRole('button', { name: 'Revert' })).toBeVisible() | ||
await anew(page, (expect) => | ||