|
1 | 1 | import { Given, When, Then, And } from 'cypress-cucumber-preprocessor/steps';
|
2 | 2 | import { guidedTour } from '@console/cypress-integration-tests/views/guided-tour';
|
3 | 3 | import { switchPerspective } from '@console/dev-console/integration-tests/support/constants';
|
4 |
| -import { devNavigationMenuPO } from '@console/dev-console/integration-tests/support/pageObjects'; |
5 |
| -import { adminNavigationMenuPO } from '@console/dev-console/integration-tests/support/pageObjects'; |
6 |
| -import { |
7 |
| - perspective, |
8 |
| - projectNameSpace, |
9 |
| -} from '@console/dev-console/integration-tests/support/pages'; |
| 4 | +import { perspective } from '@console/dev-console/integration-tests/support/pages'; |
10 | 5 | import { checkTerminalIcon } from '@console/dev-console/integration-tests/support/pages/functions/checkTerminalIcon';
|
11 | 6 | import { webTerminalPage } from '@console/webterminal-plugin/integration-tests/support/step-definitions/pages/web-terminal/webTerminal-page';
|
12 | 7 |
|
@@ -85,14 +80,6 @@ And('user has logged in as basic user', () => {
|
85 | 80 | // perspective.switchTo(switchPerspective.Developer);
|
86 | 81 | // });
|
87 | 82 |
|
88 |
| -// Given('user is at administrator perspective', () => { |
89 |
| -// perspective.switchTo(switchPerspective.Administrator); |
90 |
| -// }); |
91 |
| - |
92 |
| -Given('user has created or selected namespace {string}', (projectName: string) => { |
93 |
| - Cypress.env('NAMESPACE', projectName); |
94 |
| - // move to workload/topology page as "Project" page does not contain dropdown menu in regular user perspective. |
95 |
| - cy.get(adminNavigationMenuPO.workloads.main).click(); |
96 |
| - cy.get(devNavigationMenuPO.topology).click(); |
97 |
| - projectNameSpace.selectOrCreateProject(`${projectName}`); |
| 83 | +Given('user is at administrator perspective', () => { |
| 84 | + perspective.switchTo(switchPerspective.Administrator); |
98 | 85 | });
|
0 commit comments