postcat/e2e/env.t

86 lines
1004 B
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
sel -> 'Mangage Environment'
2022-08-23 18:09:42 +08:00
find(<):
2022-08-22 19:05:45 +08:00
[icon] [label 'New'] = newLabel
newLabel -> click
}
::: modal_layout {
find:
[input] = envName
[input] = host
[input] = name [input] = value [input] = desc [icon]
[button 'Save'] = save
}
::: 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
goto 'http://localhost:4200'
--- env_manage
--- modal_layout
envName -> 'myEnv'
host -> 'https://youtube.com'
--- add_data :a:b:c
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
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
save -> click
sel -> hover
find:
[label 'myEnv'] [icon] = del_icon
icon -> click
find:
[label 'Cancel'] [label 'OK']=OK
ok -> click
find: (!)
[label 'myEnv']