Skip to content

Commit

Permalink
Squashed commit of the following:
Browse files Browse the repository at this point in the history
commit c49c927790b7fdc480636b40bcad732cbc13abe8
Merge: 0efda1f 4bf46aa
Author: 夜鹰 <17kungfuboy@gmail.com>
Date:   Mon Feb 7 00:08:53 2022 +0800

    Merge branch 'fix-bug-2022-01-25' of github.com:eolinker/eoapi into fix-bug-2022-01-25

commit 0efda1fc58279f5814122ba8a3aecc542a181811
Author: 夜鹰 <17kungfuboy@gmail.com>
Date:   Mon Feb 7 00:04:47 2022 +0800

    add e2e test case

commit 4cecdbbfa6aa5a5b40601011678679c37aa480b9
Author: kungfuboy <17kungfuboy@gmail.com>
Date:   Sun Feb 6 22:37:13 2022 +0800

    change test unit

commit 292fe93b2d33b08703b4a149617e8bea570cdaee
Author: kungfuboy <17kungfuboy@gmail.com>
Date:   Wed Jan 26 21:48:07 2022 +0800

    add file about test

commit 62f4870a577996e3e9bfd093fcf98a76b7414db8
Author: 夜鹰 <17kungfuboy@gmail.com>
Date:   Wed Jan 26 16:50:52 2022 +0800

    update

commit 083ebc953e037b804d4c1d2e39afa8d463613a3b
Author: kungfuboy <17kungfuboy@gmail.com>
Date:   Tue Jan 25 22:07:03 2022 +0800

    add log

commit afc3a5f72994b095d7f62a3bcc3762f6cc7b5129
Author: kungfuboy <17kungfuboy@gmail.com>
Date:   Sun Jan 30 22:38:40 2022 +0800

    add e2e test of add_api

commit 5fed3394a5d2ac452beb9a19acb8bb936bcb8dfb
Author: kungfuboy <17kungfuboy@gmail.com>
Date:   Wed Jan 26 21:48:07 2022 +0800

    add file about test

commit f7f1c7e017450a1d04f5b4f94da8980b88e08b13
Author: 夜鹰 <17kungfuboy@gmail.com>
Date:   Wed Jan 26 16:50:52 2022 +0800

    update

commit 3f11b61a180186f536c163da9c830b75f26e1478
Author: kungfuboy <17kungfuboy@gmail.com>
Date:   Tue Jan 25 22:07:03 2022 +0800

    add log

commit 4bf46aad777464a87800a0db0f55c99cb4ad8fdd
Author: 夜鹰 <17kungfuboy@gmail.com>
Date:   Mon Feb 7 00:04:47 2022 +0800

    add e2e test case

commit aab9ee73b013f7dc84ffd85ee030162c561907de
Author: kungfuboy <17kungfuboy@gmail.com>
Date:   Sun Feb 6 22:37:13 2022 +0800

    change test unit

commit e0528e45274c3d00884a002a9115fe0a41c4e2c0
Merge: ee0ca9f cabde42
Author: kungfuboy <17kungfuboy@gmail.com>
Date:   Thu Feb 3 21:13:16 2022 +0800

    Merge branch 'fix-bug-2022-01-25' of github.com:eolinker/eoapi into fix-bug-2022-01-25

commit ee0ca9fe6cce56fb2984a2e138a25a6811395f34
Author: kungfuboy <17kungfuboy@gmail.com>
Date:   Sun Jan 30 22:38:40 2022 +0800

    add e2e test of add_api

commit 680f9233fc7d9d605516e4f46765909e50fae5db
Author: kungfuboy <17kungfuboy@gmail.com>
Date:   Wed Jan 26 21:48:07 2022 +0800

    add file about test

commit 1ca2950d9438eb031783418f736fcf82846e72c3
Author: 夜鹰 <17kungfuboy@gmail.com>
Date:   Wed Jan 26 16:50:52 2022 +0800

    update

commit 1b1c2fd297c5f7baeeebb0e3623953af621726d1
Author: kungfuboy <17kungfuboy@gmail.com>
Date:   Tue Jan 25 22:07:03 2022 +0800

    add log

commit cabde42c38d48a45d5518e5c2c8aed28ba348a5d
Author: kungfuboy <17kungfuboy@gmail.com>
Date:   Wed Jan 26 21:48:07 2022 +0800

    add file about test

commit bca80271a6e335e830001b8525abbbab9d2822e2
Author: 夜鹰 <17kungfuboy@gmail.com>
Date:   Wed Jan 26 16:50:52 2022 +0800

    update

commit 1ffe93f421e1404093e6bb9ba76de663d063c923
Author: kungfuboy <17kungfuboy@gmail.com>
Date:   Tue Jan 25 22:07:03 2022 +0800

    add log
  • Loading branch information
kungfuboy committed Feb 6, 2022
1 parent c543108 commit 9aae83f
Show file tree
Hide file tree
Showing 8 changed files with 64 additions and 3,156 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ testem.log
/typings

# e2e
/e2e/*.test.js
/e2e/test
!/e2e/protractor.conf.js
/e2e/*.map
/e2e/tracing
Expand Down
59 changes: 55 additions & 4 deletions e2e/env.t
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
=== Env

::: open_env_modal {
::: open_modal {

goto 'http://localhost:4200'

Expand All @@ -12,9 +12,17 @@ sel -> '管理环境'
wait 800
}

::: find_new_line {
find:
[label '参数名'] [label '说明'] [label '示例']
[input '']=pname [input '']=pdesc [input '']=pexample

capture
}


--- add new Env
--- open_env_modal
--- open_modal

find:
[label '环境名称']
Expand All @@ -36,6 +44,11 @@ wait

cancel -> click

find:
[select 'jspath:body > eo-root > eo-pages > div > div > eo-api > nz-layout > nz-layout > nz-content > div > div.tabs-bar.f_row > div > eo-env > nz-select > nz-select-top-control > nz-select-search > input']=sel

wait

sel -> '环境名称A'

wait
Expand All @@ -44,9 +57,9 @@ find:
[label 'http://www.youtube.com'] = url


=== Add API
=== API

--- add new api
::: create_get_api {

goto 'http://localhost:4200'

Expand All @@ -70,4 +83,42 @@ save -> click
find:
[input] [img] [label 'API']=btn [img]
[label '新Get接口']=target
}

--- add get api
--- create_get_api

--- edit page
--- create_get_api

find:
[label 'GET'] [label '新Get接口']=target

target -> click

find:
[label '文档'] [label '编辑']=edit [label '测试']

edit -> click

--- find_new_line
pname -> 'jumpfrom'
pexample -> 'weibocom'

--- find_new_line
pname -> 'type'
pexample -> 'uid'

--- find_new_line
pname -> 'value'
pexample -> '7725367947'

--- find_new_line
pname -> 'containerid'
pexample -> '1076037725367947'

find:
[button '保存']=save

save -> click
capture
Binary file removed e2e/img/截图1642429659730.png
Binary file not shown.
Binary file removed e2e/img/截图1642430211637.png
Binary file not shown.
24 changes: 0 additions & 24 deletions e2e/test/add_api_add_new_api.t

This file was deleted.

Loading

0 comments on commit 9aae83f

Please sign in to comment.