postcat/e2e/env.t

99 lines
1.1 KiB
Perl
Raw Normal View History

2022-08-22 19:05:45 +08:00
::: env_manage {
2022-08-23 18:09:42 +08:00
find(<):
2022-08-22 19:05:45 +08:00
[select 'Environment'] = sel
2022-08-24 23:02:00 +08:00
sel -> 'Manage Environment'
2022-08-22 19:05:45 +08:00
2022-08-23 18:09:42 +08:00
find(<):
2022-08-24 23:02:00 +08:00
[img] [label 'New'] = newLabel
2022-08-22 19:05:45 +08:00
newLabel -> click
2022-08-24 23:02:00 +08:00
2022-08-22 19:05:45 +08:00
}
::: modal_layout {
2022-08-27 16:53:02 +08:00
2022-08-22 19:05:45 +08:00
find:
[input] = envName
[input] = host
2022-08-28 20:08:22 +08:00
[input] = name [input] = value [input] = desc [img]
2022-08-24 23:02:00 +08:00
[button 'Save']=save
2022-08-22 19:05:45 +08:00
}
::: add_data {
name -> '{$1}'
value -> '{$2}'
desc -> '{$3}'
}
2022-08-18 18:51:37 +08:00
=== Env
2022-08-22 19:05:45 +08:00
--- add case
2022-09-13 15:54:41 +08:00
goto 'http://localhost:4200'
2022-08-22 19:05:45 +08:00
--- env_manage
--- modal_layout
envName -> 'myEnv'
host -> 'https://youtube.com'
2022-08-30 09:44:51 +08:00
--- add_data :a :b :c
2022-08-22 19:05:45 +08:00
save -> click
2022-08-23 18:09:42 +08:00
find(<):
2022-08-22 19:05:45 +08:00
[label 'myEnv']
2022-08-23 18:09:42 +08:00
find(<):
2022-08-22 19:05:45 +08:00
[select 'Environment'] = sel
sel -> 'myEnv'
find:
[label 'myEnv'] [input]
--- del case
2022-08-18 18:51:37 +08:00
2022-09-13 15:54:41 +08:00
goto 'http://localhost:4200'
2022-08-22 19:05:45 +08:00
--- env_manage
--- modal_layout
envName -> 'myEnv'
host -> 'https://youtube.com'
--- add_data :a:b:c
2022-08-28 20:08:22 +08:00
# 保存
2022-08-22 19:05:45 +08:00
save -> click
2022-08-28 20:08:22 +08:00
sel -> 'myEnv'
2022-08-22 19:05:45 +08:00
find:
2022-08-28 20:08:22 +08:00
[label 'New']
[label 'myEnv'] = env
env -> hover
find:
[label 'New']
2022-08-24 23:02:00 +08:00
[label 'myEnv'] [img] = delIcon
2022-08-28 20:08:22 +08:00
delIcon -> click
2022-08-22 19:05:45 +08:00
find:
2022-08-28 20:08:22 +08:00
[label 'Cancel'] [label 'OK']=ok
2022-08-22 19:05:45 +08:00
ok -> click
find: (!)
[label 'myEnv']
2022-08-28 20:08:22 +08:00
capture