Fix E2E tests, related to the OAuth flow

This commit is contained in:
ErickSkrauch
2024-12-17 21:49:05 +01:00
parent af59cc033f
commit b0975f0b0f
3 changed files with 21 additions and 18 deletions

View File

@@ -391,7 +391,7 @@ export function oAuthComplete(params: { accept?: boolean } = {}) {
} else if (resp.redirectUri.startsWith('static_page')) {
const displayCode = resp.redirectUri.includes('static_page_with_code');
const [, code] = resp.redirectUri.match(/code=(.+)&/) || [];
const [, code] = resp.redirectUri.match(/code=([^&]+)/) || [];
[, resp.redirectUri] = resp.redirectUri.match(/^(.+)\?/) || [];
dispatch(