cloudfoundry-incubator/stratos

View on GitHub
src/test-e2e/application/po/card-app-deploy-info.po.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { by, element, ElementFinder } from 'protractor';

import { MetaCard, MetaCardTitleType } from '../../po/meta-card.po';
import { MetaDataItemComponent } from '../../po/meta-data-item.po';


export class CardAppDeployInfo extends MetaCard {

  gitCommit: MetaDataItemComponent;
  docker: MetaDataItemComponent;

  constructor(
    locator: ElementFinder = element(by.id('app-build-tab-deployment-info'))
  ) {
    super(locator, MetaCardTitleType.MAT_CARD);
    this.gitCommit = MetaDataItemComponent.withDynamicLabel(locator, 'Commit');
    this.docker = MetaDataItemComponent.withDynamicLabel(locator, 'Docker Image');
  }

}