open-nomad/ui/tests/pages/components/lifecycle-chart.js
Michael Lange f543137ec9 Revert "Temporarily remove poststop from the UI"
This reverts commit f8a505ea2f9def2a7ce7a93e6d0529e1b5da4894.
2020-11-12 09:16:52 -08:00

31 lines
855 B
JavaScript

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'),
isPrestartEphemeral: hasClass('prestart-ephemeral'),
isPrestartSidecar: hasClass('prestart-sidecar'),
isPoststartEphemeral: hasClass('poststart-ephemeral'),
isPoststartSidecar: hasClass('poststart-sidecar'),
isPoststop: hasClass('poststop'),
visit: clickable('a'),
}),
};