LP1989195: Use nightwatch for e2e testing angular client
[evergreen-equinox.git] / Open-ILS / src / eg2 / nightwatch / pages / staff / cat / authority.ts
1 import {PageObjectModel} from 'nightwatch';
2
3 const authority: PageObjectModel = {
4     elements: {
5         searchTermInput: {
6             selector: 'input[placeholder="Search Term"]'
7         },
8         authorityTypeInput: {
9             selector: '//div[@class = "input-group"]/eg-combobox//input',
10             locateStrategy: 'xpath'
11         },
12         subjectAuthorityType: {
13             selector: '//button/span[text() = "Subject"]',
14             locateStrategy: 'xpath'
15         },
16         searchResult: {
17             selector: '//a[contains(text(), "Philosophy, Chinese")]',
18             locateStrategy: 'xpath'
19         }
20     }
21 };
22
23 export default authority;