-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathintegration.yml
91 lines (90 loc) · 4.42 KB
/
integration.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
# Sample application with login
setup:
baseUrl: http://127.0.0.1:8090
continueOnError: true
auth:
navigate: /_/#/login
username:
value: [email protected]
selector: //*[@class="app-body"]/div[1]/main/div/form/div[2]/input
password:
value: P4s$w0rd123!
selector: //*[@class="app-body"]/div[1]/main/div/form/div[3]/input
submit:
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 - with 1 field - brand new set up
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: false
- 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: create test2 collection from
navigate: /_/?#/collections
elementActions:
- name: Ceate new collection from side menu - with 1 field
element:
selector: //*/span[text()[contains(., 'New collection')]]
clickSwipe: true
- name: Name it test-table-2
element:
selector: //*/h4[contains(text(),"New collection")]/following-sibling::form//*/input
# by specifying a value here we ensure a Input occurs
value: test-table-2
assert: false
- name: Add New Field - sample2
element:
selector: //*/span[text()[contains(., 'New field')]]
- name: Expand Type
element:
selector: //*[@class="select field-type-select"]
- name: Click email Type
element:
selector: //*/div[@class="options-list"]//*[text() ="Email"]
- name: Fill in email
element:
selector: //*/span[@class="txt"][text() ="Name"]/../../input
value: emailField
- name: Click Done
element:
selector: //*/span[@class="txt"][text() ="Done"]/..
- name: Click Create Collection
element:
selector: //*/span[@class="txt"][text() ="Create"]/..
- name: Add Fields to test collection
navigate: /_/?#/collections
elementActions:
- name: assert collection test is created
element:
selector: //*[@class='sidebar-content']/*[contains(., 'test')]/span
assert: true
- name: click test collection - just in case
element:
selector: //*[@class='sidebar-content']/*[contains(., 'test')]/span
- name: assert field testField1 is created
element:
selector: //*[@class='page-wrapper']//span[contains(., 'testField1')]
assert: true