Skip to content

Commit

Permalink
fix: πŸ› end sessions
Browse files Browse the repository at this point in the history
  • Loading branch information
DhariniJeeva committed Jan 23, 2025
1 parent 880defe commit 9b7b16c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions e2e-tests/desktop/tests/credentials.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -300,5 +300,12 @@ test.describe('Credential Panel tests', async () => {
.filter({ hasText: 'private_key' })
.locator('pre'),
).toContainText(/BEGIN (OPENSSH|RSA) PRIVATE KEY/);

// End session as active sessions will show a popup when trying to close the DC
await authedPage.getByRole('button', { name: 'End Session' }).click();
await expect(authedPage.getByText('Canceled successfully.')).toBeVisible();
await expect(
authedPage.getByRole('heading', { name: 'Targets' }),
).toBeVisible();
});
});

0 comments on commit 9b7b16c

Please sign in to comment.