mirror of https://github.com/status-im/consul.git
18 lines
537 B
JavaScript
18 lines
537 B
JavaScript
/**
|
|
* Copyright (c) HashiCorp, Inc.
|
|
* SPDX-License-Identifier: BUSL-1.1
|
|
*/
|
|
|
|
export default function (visitable, clickable, attribute, collection) {
|
|
return {
|
|
visit: visitable('/:dc/'),
|
|
dcs: collection('[data-test-datacenter-picker]'),
|
|
showDatacenters: clickable('[data-test-datacenter-selected]'),
|
|
selectedDc: attribute('data-test-datacenter-selected', '[data-test-datacenter-selected]'),
|
|
selectedDatacenter: attribute(
|
|
'data-test-datacenter-selected',
|
|
'[data-test-datacenter-selected]'
|
|
),
|
|
};
|
|
}
|