2023-04-10 15:36:59 +00:00
|
|
|
/**
|
|
|
|
* Copyright (c) HashiCorp, Inc.
|
|
|
|
* SPDX-License-Identifier: MPL-2.0
|
|
|
|
*/
|
|
|
|
|
2020-04-30 13:15:19 +00:00
|
|
|
import { clickable, collection, hasClass, text } from 'ember-cli-page-object';
|
|
|
|
|
|
|
|
export default {
|
|
|
|
scope: '[data-test-lifecycle-chart]',
|
|
|
|
|
|
|
|
title: text('.boxed-section-head'),
|
|
|
|
|
|
|
|
phases: collection('[data-test-lifecycle-phase]', {
|
|
|
|
name: text('[data-test-name]'),
|
|
|
|
|
|
|
|
isActive: hasClass('is-active'),
|
|
|
|
}),
|
|
|
|
|
|
|
|
tasks: collection('[data-test-lifecycle-task]', {
|
|
|
|
name: text('[data-test-name]'),
|
|
|
|
lifecycle: text('[data-test-lifecycle]'),
|
|
|
|
|
|
|
|
isActive: hasClass('is-active'),
|
|
|
|
isFinished: hasClass('is-finished'),
|
|
|
|
|
|
|
|
isMain: hasClass('main'),
|
2020-08-25 17:17:18 +00:00
|
|
|
isPrestartEphemeral: hasClass('prestart-ephemeral'),
|
|
|
|
isPrestartSidecar: hasClass('prestart-sidecar'),
|
|
|
|
isPoststartEphemeral: hasClass('poststart-ephemeral'),
|
|
|
|
isPoststartSidecar: hasClass('poststart-sidecar'),
|
2020-09-01 16:49:36 +00:00
|
|
|
isPoststop: hasClass('poststop'),
|
2020-04-30 13:15:19 +00:00
|
|
|
|
|
|
|
visit: clickable('a'),
|
|
|
|
}),
|
|
|
|
};
|