open-nomad/ui/tests/pages/components/lifecycle-chart.js
Jasmine Dahilig a9004faa11
UI: Add representations for task lifecycles (#7659)
This adds details about task lifecycles to allocations, task groups,
and tasks. It includes a live-updating timeline-like chart on allocations.
2020-04-30 08:15:19 -05:00

28 lines
667 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'),
isPrestart: hasClass('prestart'),
isSidecar: hasClass('sidecar'),
visit: clickable('a'),
}),
};