-
Notifications
You must be signed in to change notification settings - Fork 0
/
integration-with-configmanager.yml
60 lines (60 loc) · 3.29 KB
/
integration-with-configmanager.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
# Sample application with login
setup:
baseUrl: http://127.0.0.1:59886 # http://127.0.0.1:8090
continueOnError: false
isSinglePageApp: true
auth:
navigate: /_/#/login
username:
value: [email protected]
selector: //*[@class="app-body"]/div[1]/main/div/form/div[2]/input
password:
value: AWSPARAMSTR:///int-test/pocketbase/admin-pwd
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
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
# 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
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