2021-12-28 16:08:12 +00:00
|
|
|
import {
|
|
|
|
create,
|
|
|
|
collection,
|
|
|
|
clickable,
|
|
|
|
text,
|
|
|
|
visitable,
|
|
|
|
} from 'ember-cli-page-object';
|
2018-07-10 02:17:36 +00:00
|
|
|
|
|
|
|
export default create({
|
|
|
|
pageSize: 8,
|
|
|
|
|
|
|
|
visit: visitable('/servers'),
|
|
|
|
servers: collection('[data-test-server-agent-row]', {
|
|
|
|
name: text('[data-test-server-name]'),
|
|
|
|
status: text('[data-test-server-status]'),
|
|
|
|
leader: text('[data-test-server-is-leader]'),
|
|
|
|
address: text('[data-test-server-address]'),
|
|
|
|
serfPort: text('[data-test-server-port]'),
|
|
|
|
datacenter: text('[data-test-server-datacenter]'),
|
2021-10-22 14:33:06 +00:00
|
|
|
version: text('[data-test-server-version]'),
|
2018-07-10 02:17:36 +00:00
|
|
|
|
|
|
|
clickRow: clickable(),
|
|
|
|
clickName: clickable('[data-test-server-name] a'),
|
|
|
|
}),
|
|
|
|
|
|
|
|
error: {
|
|
|
|
title: text('[data-test-error-title]'),
|
|
|
|
message: text('[data-test-error-message]'),
|
|
|
|
seekHelp: clickable('[data-test-error-message] a'),
|
|
|
|
},
|
|
|
|
});
|