This repository has been archived by the owner on Dec 21, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 245
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(bridge): Fix broken UI if connection was lost (#8050)
* fix(bridge): Fix broken UI if connection was lost Signed-off-by: Klaus Strießnig <k.striessnig@gmail.com> * added UI test Signed-off-by: Klaus Strießnig <k.striessnig@gmail.com>
- Loading branch information
Showing
10 changed files
with
56 additions
and
11 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
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
18 changes: 18 additions & 0 deletions
18
bridge/cypress/integration/navigation-project-error.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,18 @@ | ||
import { ProjectBoardPage } from '../support/pageobjects/ProjectBoardPage'; | ||
import EnvironmentPage from '../support/pageobjects/EnvironmentPage'; | ||
import BasePage from '../support/pageobjects/BasePage'; | ||
|
||
describe('Navigation on project error', () => { | ||
it('should still navigate and load data if one project request failed', () => { | ||
const projectBoardPage = new ProjectBoardPage(); | ||
const environmentPage = new EnvironmentPage(); | ||
const basePage = new BasePage(); | ||
const project = 'my-error-project'; | ||
environmentPage.intercept(); | ||
projectBoardPage.interceptError(project); | ||
|
||
environmentPage.visit(project).assertIsLoaded(false); | ||
basePage.selectProjectThroughHeader('sockshop'); | ||
environmentPage.assertIsLoaded(true); | ||
}); | ||
}); |
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