Skip to content

Commit

Permalink
try without batches
Browse files Browse the repository at this point in the history
  • Loading branch information
MaPoKen committed May 30, 2024
1 parent 3e4eff0 commit 5eab664
Show file tree
Hide file tree
Showing 40 changed files with 43 additions and 41 deletions.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

6 changes: 4 additions & 2 deletions e2e/specs/authenticated/MyNDLAFolder.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ test("can add and delete folder", async ({ page, harCheckpoint }) => {
await expect(folderList.getByRole("listitem")).toHaveCount(count);
});

test("can drag and drop folders", async ({ page }) => {
test("can drag and drop folders", async ({ page, harCheckpoint }) => {
await expect(page.getByRole("heading").getByText("Mine mapper")).toBeVisible();
const folderList = page.getByRole("list").filter({ has: page.locator('[data-type="list"]') });
await expect(folderList).toBeVisible();
Expand All @@ -102,6 +102,7 @@ test("can drag and drop folders", async ({ page }) => {

await firstItem.hover();
await page.mouse.up();
await harCheckpoint();

const newFolderOrder = await folderList.getByRole("listitem").getByRole("heading").allTextContents();

Expand All @@ -111,9 +112,10 @@ test("can drag and drop folders", async ({ page }) => {
await page.mouse.down();
await firstItem.hover();
await page.mouse.up();
await harCheckpoint();

const oldFolderOrder = await folderList.getByRole("listitem").getByRole("heading").allTextContents();

await page.waitForLoadState("networkidle");
expect(initialFolderOrder).toStrictEqual(oldFolderOrder);
});

Expand Down
2 changes: 1 addition & 1 deletion src/util/apiHelpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ export const createApolloLinks = (lang: string, versionHash?: string) => {
headersLink,
new BatchHttpLink({
uri,
batchInterval: 1,
batchInterval: 100,
}),
]);
};
Expand Down

0 comments on commit 5eab664

Please sign in to comment.