github.com/hernad/nomad@v1.6.112/ui/tests/pages/components/lifecycle-chart.js (about)

     1  /**
     2   * Copyright (c) HashiCorp, Inc.
     3   * SPDX-License-Identifier: MPL-2.0
     4   */
     5  
     6  import { clickable, collection, hasClass, text } from 'ember-cli-page-object';
     7  
     8  export default {
     9    scope: '[data-test-lifecycle-chart]',
    10  
    11    title: text('.boxed-section-head'),
    12  
    13    phases: collection('[data-test-lifecycle-phase]', {
    14      name: text('[data-test-name]'),
    15  
    16      isActive: hasClass('is-active'),
    17    }),
    18  
    19    tasks: collection('[data-test-lifecycle-task]', {
    20      name: text('[data-test-name]'),
    21      lifecycle: text('[data-test-lifecycle]'),
    22  
    23      isActive: hasClass('is-active'),
    24      isFinished: hasClass('is-finished'),
    25  
    26      isMain: hasClass('main'),
    27      isPrestartEphemeral: hasClass('prestart-ephemeral'),
    28      isPrestartSidecar: hasClass('prestart-sidecar'),
    29      isPoststartEphemeral: hasClass('poststart-ephemeral'),
    30      isPoststartSidecar: hasClass('poststart-sidecar'),
    31      isPoststop: hasClass('poststop'),
    32  
    33      visit: clickable('a'),
    34    }),
    35  };