cloudfoundry-incubator/stratos

View on GitHub
src/test-e2e/po/form.po.ts

Summary

Maintainability
B
5 hrs
Test Coverage

Function fill has 75 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  fill(fields: { [fieldKey: string]: string | boolean | number[] }, expectFailure = false): promise.Promise<void> {
    return this.getControlsMapFormFill().then(ctrls => {
      Object.keys(fields).forEach(field => {
        const ctrl = ctrls[field] as FormItem;
        const value: any = fields[field];
Severity: Major
Found in src/test-e2e/po/form.po.ts - About 3 hrs to fix

    File form.po.ts has 269 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    import { browser, by, element, promise } from 'protractor';
    import { ElementArrayFinder, ElementFinder, protractor } from 'protractor/built';
    import { Key } from 'selenium-webdriver';
    
    import { Component } from './component.po';
    Severity: Minor
    Found in src/test-e2e/po/form.po.ts - About 2 hrs to fix

      TODO found
      Open

                  // TODO: These should be detected by browser/locale?
      Severity: Minor
      Found in src/test-e2e/po/form.po.ts by fixme

      TODO found
      Open

                  // TODO: These should be detected by browser/locale?
      Severity: Minor
      Found in src/test-e2e/po/form.po.ts by fixme

      There are no issues that match your filters.

      Category
      Status