Skip to content

Commit

Permalink
feat: suspend the test related to cookie (#322)
Browse files Browse the repository at this point in the history
Because

- #321

This commit

- Disable test around cookies
  • Loading branch information
EiffelFly committed Jan 10, 2023
1 parent f9c15e5 commit bd54f71
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
17 changes: 9 additions & 8 deletions integration-test/common/mgmt.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { env ,
import {
env,
createInstillAxiosTestClient,
expectToSelectReactSelectOption,
} from "../helper";
Expand Down Expand Up @@ -65,11 +66,11 @@ export const expectToOnboardUser = async (

// Should have cookie
// Safari have issue when setting up cookies.
if (browserName !== "webkit") {
const cookies = await context.cookies();
const instillCookies = cookies.find(
(e) => e.name === env("NEXT_PUBLIC_INSTILL_AI_USER_COOKIE_NAME")
);
expect(instillCookies).toBeDefined();
}
// if (browserName !== "webkit") {
// const cookies = await context.cookies();
// const instillCookies = cookies.find(
// (e) => e.name === env("NEXT_PUBLIC_INSTILL_AI_USER_COOKIE_NAME")
// );
// expect(instillCookies).toBeDefined();
// }
};
2 changes: 1 addition & 1 deletion integration-test/common/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ export const expectCorrectModelDetails = async ({
additionalRules,
}: ExpectCorrectModelDetailsProps) => {
// Mimic the behavior of long running operation
await delay(2000);
await delay(5000);

await page.goto(`/models/${modelId}`, { waitUntil: "networkidle" });

Expand Down

0 comments on commit bd54f71

Please sign in to comment.