-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[2765] Add support for portal representation
Bug: #2765 Signed-off-by: Pierre-Charles David <pierre-charles.david@obeo.fr>
- Loading branch information
Showing
121 changed files
with
7,113 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
51 changes: 51 additions & 0 deletions
51
integration-tests/cypress/e2e/project/portals/portals.cy.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,51 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2024 Obeo. | ||
* This program and the accompanying materials | ||
* are made available under the terms of the Eclipse Public License v2.0 | ||
* which accompanies this distribution, and is available at | ||
* https://www.eclipse.org/legal/epl-2.0/ | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
* | ||
* Contributors: | ||
* Obeo - initial API and implementation | ||
*******************************************************************************/ | ||
|
||
import { Project } from '../../../pages/Project'; | ||
import { Flow } from '../../../usecases/Flow'; | ||
import { Explorer } from '../../../workbench/Explorer'; | ||
|
||
const projectName = 'Cypress - portal'; | ||
|
||
describe('/projects/:projectId/edit - Portal', () => { | ||
context('Given a flow project with a robot document', () => { | ||
let projectId: string = ''; | ||
beforeEach(() => | ||
new Flow().createRobotProject(projectName).then((createdProjectData) => { | ||
projectId = createdProjectData.projectId; | ||
new Project().visit(projectId); | ||
}) | ||
); | ||
|
||
afterEach(() => cy.deleteProject(projectId)); | ||
|
||
context('When we create a new portal using the contextual menu', () => { | ||
beforeEach(() => { | ||
const explorer = new Explorer(); | ||
explorer.expand('robot'); | ||
explorer.getTreeItemByLabel('Robot').should('exist'); | ||
explorer.createRepresentation('Robot', 'Portal', 'Portal'); | ||
}); | ||
|
||
it('Then it reveals a newly created portal', () => { | ||
const explorer = new Explorer(); | ||
explorer.getTreeItemByLabel('Central_Unit').should('exist'); | ||
explorer.getTreeItemByLabel('CaptureSubSystem').should('exist'); | ||
explorer.getTreeItemByLabel('Portal').should('exist'); | ||
|
||
explorer.getSelectedTreeItems().should('have.length', 1); | ||
explorer.getSelectedTreeItems().contains('Portal').should('exist'); | ||
}); | ||
}); | ||
}); | ||
}); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Oops, something went wrong.