forked from linode/manager
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'linode:develop' into develop
- Loading branch information
Showing
9 changed files
with
143 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@linode/manager": Tests | ||
--- | ||
|
||
E2E coverage for refactored Events and Placement Groups flows ([#10719](https://github.com/linode/manager/pull/10719)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@linode/manager": Tests | ||
--- | ||
|
||
E2E coverage for Logout flow ([#10733](https://github.com/linode/manager/pull/10733)) |
5 changes: 5 additions & 0 deletions
5
packages/manager/.changeset/pr-10734-tech-stories-1722442550964.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@linode/manager": Tech Stories | ||
--- | ||
|
||
Upgraded to latest Design Language System (DLS) 2.6.1 ([#10734](https://github.com/linode/manager/pull/10734)) |
34 changes: 34 additions & 0 deletions
34
packages/manager/cypress/e2e/core/account/account-logout.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import { LOGIN_ROOT } from 'src/constants'; | ||
import { interceptGetAccount } from 'support/intercepts/account'; | ||
import { ui } from 'support/ui'; | ||
|
||
describe('Logout Test', () => { | ||
beforeEach(() => { | ||
cy.tag('purpose:syntheticTesting'); | ||
}); | ||
|
||
/* | ||
* - Confirms that Cloud Manager log out functionality works as expected. | ||
* - Confirms that the login application is up after account logout. | ||
*/ | ||
it('can logout the account and redirect to login endpoint', () => { | ||
interceptGetAccount().as('getAccount'); | ||
|
||
cy.visitWithLogin('/account'); | ||
cy.wait('@getAccount'); | ||
|
||
// User can click Logout via user menu. | ||
ui.userMenuButton.find().click(); | ||
ui.userMenu | ||
.find() | ||
.should('be.visible') | ||
.within(() => { | ||
cy.findByText('Log Out').should('be.visible').click(); | ||
}); | ||
// Upon clicking "Log Out", the user is redirected to the login endpoint at <REACT_APP_LOGIN_ROOT>/login | ||
cy.url().should('equal', `${LOGIN_ROOT}/login`); | ||
// Using cy.visit to navigate back to Cloud results in another redirect to the login page | ||
cy.visit('/'); | ||
cy.url().should('startWith', `${LOGIN_ROOT}/login`); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters