37b788011986c85c56a15d03d7562da7833eb4dd
[evergreen-equinox.git] / Open-ILS / src / eg2 / nightwatch / pages / staff / cat / vandelay.ts
1 import {PageObjectModel} from 'nightwatch';
2 import {fmEditorFieldSelector} from '../../../src/utils';
3
4 const vandelay: PageObjectModel = {
5     elements: {
6         recordDisplayAttributes: {
7             selector: '//a[text()="Record Display Attributes"]',
8             locateStrategy: 'xpath'
9         },
10         newVqradButton: {
11             selector: '//button[not(@disabled) and contains(text(), "New Queued Authority Record Attribute Definition")]',
12             locateStrategy: 'xpath'
13         },
14         codeInput: {
15             selector: fmEditorFieldSelector('Code')
16         },
17         descriptionInput: {
18             selector: fmEditorFieldSelector('Description')
19         },
20         xpathInput: {
21             selector: fmEditorFieldSelector('XPath')
22         },
23         saveButton: {
24             selector: '//button[text()="Save"]',
25             locateStrategy: 'xpath'
26         },
27         recordTypeCombobox: {
28             selector: fmEditorFieldSelector('Record Type')
29         },
30         queueName: {
31             selector: fmEditorFieldSelector('Select or Create a Queue')
32         },
33         uploadButton: {
34             selector: '//button[text()="Upload"]',
35             locateStrategy: 'xpath'
36         },
37         goToQueueButton: {
38             selector: '//button[text()="Go To Queue"]',
39             locateStrategy: 'xpath'
40         },
41         authorityRecordType: {
42             selector: '//button/span[text()="Authority Records"]',
43             locateStrategy: 'xpath'
44         }
45     }
46 };
47
48 export default vandelay;