Skip to content
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
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ export default defineConfig({
'**/SSORenewal.spec.ts',
'**/SSOSessionLimit.spec.ts',
],
use: { ...devices['Desktop Chrome'] },
use: { ...devices['Desktop Chrome'], trace: 'retain-on-failure' },
fullyParallel: false,
workers: 1,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
*/
import { BrowserContext, expect, Page, Request, test } from '@playwright/test';
import { SSO_ENV } from '../../constant/ssoAuth';
import { redirectToHomePage } from '../../utils/common';
import { decodeJwtExp, expireStoredToken } from '../../utils/sessionRenewal';
import { getProviderHelper, ProviderHelper } from '../../utils/sso-providers';
import { swapSecurityConfig } from '../../utils/ssoAuth';
Expand Down Expand Up @@ -140,6 +141,11 @@ test.describe('Okta Public Session Renewal', { tag: OKTA_PUBLIC_TAGS }, () => {

await expect(page.getByTestId('dropdown-profile')).toBeVisible();

// Test 1 ends on the Explore page. Navigating home ensures the subsequent
// app-bar-item-explore click is always a real navigation that triggers an
// API call, a 401, and the renewal flow we are testing.
await redirectToHomePage(page);

// renewToken reaches signInWithRedirect() both from the catch around
// renewTokens() and from an early return when okta-auth-js holds no tokens.
// Ordering is what distinguishes them.
Expand Down
Loading