Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: tests #264

Merged
merged 1 commit into from
Jul 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions test/cross.auto_refresh.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -896,12 +896,12 @@ addTestCases((name, transferMethod, setupFunc, setupArgs = []) => {

assert(
consoleLogs.includes(
"Saving to cookies was not successful, this indicates a configuration error or the browser preventing us from writing the cookies (e.g.: incognito mode)."
"Saving to cookies was not successful, this indicates a configuration error or the browser preventing us from writing the cookies."
)
);
assert(
consoleLogs.includes(
"Failed to retrieve local session state from cookies after a successful session refresh. This indicates a configuration error or that the browser is preventing cookie writes (e.g., incognito mode)."
"Failed to retrieve local session state from cookies after a successful session refresh. This indicates a configuration error or that the browser is preventing cookie writes."
)
);
});
Expand Down
9 changes: 7 additions & 2 deletions test/interception.basic1.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -280,13 +280,18 @@ addTestCases((name, transferMethod, setupFunc, setupArgs = []) => {
assert(
logs.some(str =>
str.includes(
"Saving to cookies was not successful, this indicates a configuration error or the browser preventing us from writing the cookies (e.g.: incognito mode)."
"Saving to cookies was not successful, this indicates a configuration error or the browser preventing us from writing the cookies."
)
)
);

const cookies = await page.cookies();
assert.strictEqual(cookies.length, 0);
// Assert that none of the frontend cookies are set
const frontendCookies =
transferMethod === "cookie"
? ["sAntiCsrf", "sFrontToken", "st-last-access-token-update"]
: ["sFrontToken", "st-last-access-token-update", "st-access-token", "st-refresh-token"];
assert(frontendCookies.every(cookieName => !cookies.find(cookie => cookie.name === cookieName)));
});

it("test rid is there", async function () {
Expand Down
Loading