-
Notifications
You must be signed in to change notification settings - Fork 0
/
test-input.yml
66 lines (63 loc) · 2.98 KB
/
test-input.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
setup:
baseUrl: http://127.0.0.1:8090
timeout: 30
reuseBrowserCache: false
auth:
navigate: /_/#/login
username:
must: true
value: [email protected]
xPath: //*[@class="app-body"]/div[1]/main/div/form/div[2]/input
password:
must: true
value: P4s$w0rd123!
xPath: //*[@class="app-body"]/div[1]/main/div/form/div[3]/input
submit:
must: true
selector: '#app > div > div > div.page-wrapper.full-page.center-content > main > div > form > button'
actions:
- name: create test collection (idempotently)
navigate: /_/?#/collections
elementActions:
- name: Ceate new collection
element:
selector: '#app > div > div > div.page-wrapper.center-content > main > div > button'
clickSwipe: true
- name: Name it test
element:
selector: 'body > div.overlays > div:nth-child(2) > div > div.overlay-panel.overlay-panel-lg.colored-header.compact-header.collection-panel > div.overlay-panel-section.panel-header > form > div > input'
# by specifying a value here we ensure a Input occurs
value: test
assert: true
# iframe: "id=foo"
- name: Save it
element:
selector: 'body > div.overlays > div:nth-child(2) > div > div.overlay-panel.overlay-panel-lg.colored-header.compact-header.collection-panel > div.overlay-panel-section.panel-header > form > div > input'
- name: Add New Field
element:
selector: 'body > div.overlays > div:nth-child(2) > div > div.overlay-panel.overlay-panel-lg.colored-header.compact-header.collection-panel > div.overlay-panel-section.panel-content > div > div > button'
- name: Name Field testField1
element:
selector: 'body > div.overlays > div:nth-child(2) > div > div.overlay-panel.overlay-panel-lg.colored-header.compact-header.collection-panel > div.overlay-panel-section.panel-content > div > div > div.accordions > div > div > form > div > div:nth-child(2) > div > input'
value: testField1
- name: Click Done
element:
selector: 'body > div.overlays > div:nth-child(2) > div > div.overlay-panel.overlay-panel-lg.colored-header.compact-header.collection-panel > div.overlay-panel-section.panel-content > div > div > div.accordions > div > div > form > div > div.col-sm-4.txt-right > div.inline-flex.flex-gap-sm.flex-nowrap > button.btn.btn-sm.btn-outline.btn-expanded-sm'
- name: Click Create Collection
element:
selector: 'body > div.overlays > div:nth-child(2) > div > div.overlay-panel.overlay-panel-lg.colored-header.compact-header.collection-panel > div.overlay-panel-section.panel-footer > button.btn.btn-expanded'
# - name: Add Fields to test collection (idempotently)
# navigate: /_/?#/collections
# elementActions:
---
# setup:
# ---
# # add users
# baseUrl: http://127.0.0.1:8090
# timeout: 30
# reuseBrowserCache: false
# auth:
# username: [email protected]
# password:
# actions:
# - name: createCollection-1