mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2024-12-24 07:06:38 +00:00
Updating e2e tests
This commit is contained in:
parent
53b3128c66
commit
851d006ef2
@ -17,9 +17,12 @@ export class ServersPage {
|
||||
}
|
||||
|
||||
async clickAddServer() {
|
||||
let serversTable = await this.checkServersTable();
|
||||
if (serversTable.length === 0) {
|
||||
let buttons = await browser.driver.findElements(by.className('mat-button mat-button-base'));
|
||||
await buttons[3].click();
|
||||
}
|
||||
}
|
||||
|
||||
checkServersTable() {
|
||||
return browser.driver.findElements(by.css('mat-cell'));
|
||||
|
@ -4,7 +4,7 @@ import { element } from 'protractor';
|
||||
import { ProjectsPage } from './helpers/project.po';
|
||||
import { ProjectMapPage } from './helpers/project-map.po';
|
||||
|
||||
fdescribe('Project map page', () => {
|
||||
describe('Project map page', () => {
|
||||
let serversPage: ServersPage;
|
||||
let projectsPage: ProjectsPage;
|
||||
let projectMapPage: ProjectMapPage;
|
||||
@ -26,7 +26,7 @@ fdescribe('Project map page', () => {
|
||||
helper.sleep(2000);
|
||||
});
|
||||
|
||||
fit('user should have possibility to add nodes to map', async () => {
|
||||
it('user should have possibility to add nodes to map', async () => {
|
||||
// arrange
|
||||
projectMapPage.openAddProjectDialog();
|
||||
helper.sleep(2000);
|
||||
|
@ -11,7 +11,7 @@ describe('Servers page', () => {
|
||||
helper = new TestHelper();
|
||||
});
|
||||
|
||||
it('user should have possibility to add server', async () => {
|
||||
xit('user should have possibility to add server', async () => {
|
||||
// arrange
|
||||
page.maximizeWindow();
|
||||
await page.navigateToServersPage();
|
||||
|
Loading…
Reference in New Issue
Block a user