mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2024-12-29 09:18:50 +00:00
35 lines
1.0 KiB
TypeScript
35 lines
1.0 KiB
TypeScript
import { ServersPage } from './helpers/server.po';
|
|
import { TestHelper } from './helpers/common.po';
|
|
import { element } from 'protractor';
|
|
import { ProjectsPage } from './helpers/project.po';
|
|
|
|
describe('Projects page', () => {
|
|
let serversPage: ServersPage;
|
|
let projectsPage: ProjectsPage;
|
|
let helper: TestHelper;
|
|
|
|
beforeEach(() => {
|
|
serversPage = new ServersPage();
|
|
projectsPage = new ProjectsPage();
|
|
helper = new TestHelper();
|
|
});
|
|
|
|
it('user should have possibility to create new project', async () => {
|
|
// arrange
|
|
serversPage.maximizeWindow();
|
|
await serversPage.navigateToServersPage();
|
|
await serversPage.clickAddServer();
|
|
await serversPage.navigateToServerProjects();
|
|
helper.sleep(2000);
|
|
|
|
//act
|
|
await projectsPage.openAddProjectDialog();
|
|
helper.sleep(2000);
|
|
await projectsPage.createProject();
|
|
helper.sleep(2000);
|
|
|
|
//assert
|
|
expect(helper.getCurrentUrl()).toMatch('server/1/project/');
|
|
});
|
|
});
|