postcat/e2e/env.t
2022-08-24 23:02:00 +08:00

87 lines
1001 B
Perl

::: env_manage {
find(<):
[select 'Environment'] = sel
sel -> 'Manage Environment'
find(<):
[img] [label 'New'] = newLabel
newLabel -> click
}
::: modal_layout {
find:
[input] = envName
[input] = host
[input] = name [input] = value [input] = desc [img]
[button 'Save']=save
}
::: add_data {
name -> '{$1}'
value -> '{$2}'
desc -> '{$3}'
}
=== Env
--- add case
goto 'https://www.eoapi.io/en'
--- env_manage
--- modal_layout
envName -> 'myEnv'
host -> 'https://youtube.com'
--- add_data :a:b:c
save -> click
find(<):
[label 'myEnv']
find(<):
[select 'Environment'] = sel
sel -> 'myEnv'
find:
[label 'myEnv'] [input]
--- del case
goto 'https://www.eoapi.io/en'
--- env_manage
--- modal_layout
envName -> 'myEnv'
host -> 'https://youtube.com'
--- add_data :a:b:c
save -> click
sel -> hover
find:
[label 'myEnv'] [img] = delIcon
icon -> click
find:
[label 'Cancel'] [label 'OK']=OK
ok -> click
find: (!)
[label 'myEnv']