2020-12-10 17:51:22 +00:00
|
|
|
import { create, isPresent, text, visitable } from 'ember-cli-page-object';
|
2020-04-05 00:13:40 +00:00
|
|
|
|
|
|
|
import allocations from 'nomad-ui/tests/pages/components/allocations';
|
|
|
|
|
|
|
|
export default create({
|
|
|
|
visit: visitable('/csi/volumes/:id'),
|
|
|
|
|
|
|
|
title: text('[data-test-title]'),
|
|
|
|
|
|
|
|
health: text('[data-test-volume-health]'),
|
|
|
|
provider: text('[data-test-volume-provider]'),
|
|
|
|
externalId: text('[data-test-volume-external-id]'),
|
|
|
|
hasNamespace: isPresent('[data-test-volume-namespace]'),
|
|
|
|
namespace: text('[data-test-volume-namespace]'),
|
|
|
|
|
|
|
|
...allocations('[data-test-read-allocation]', 'readAllocations'),
|
|
|
|
...allocations('[data-test-write-allocation]', 'writeAllocations'),
|
|
|
|
|
|
|
|
writeTableIsEmpty: isPresent('[data-test-empty-write-allocations]'),
|
|
|
|
writeEmptyState: {
|
|
|
|
headline: text('[data-test-empty-write-allocations-headline]'),
|
|
|
|
},
|
|
|
|
|
|
|
|
readTableIsEmpty: isPresent('[data-test-empty-read-allocations]'),
|
|
|
|
readEmptyState: {
|
|
|
|
headline: text('[data-test-empty-read-allocations-headline]'),
|
|
|
|
},
|
2020-05-02 05:26:19 +00:00
|
|
|
|
|
|
|
constraints: {
|
|
|
|
accessMode: text('[data-test-access-mode]'),
|
|
|
|
attachmentMode: text('[data-test-attachment-mode]'),
|
|
|
|
},
|
2020-04-05 00:13:40 +00:00
|
|
|
});
|