Skip to content

Commit

Permalink
fix: fix some e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
kungfuboy committed Feb 10, 2023
1 parent fc65a5e commit 31eb8f6
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 33 deletions.
12 changes: 6 additions & 6 deletions e2e/api.t
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
goto "http://localhost:4200"

find:
[img { width: 16px }] [img { width: 16px }] = history [label "New Request"]
[img { width: 14px }] [img { width: 14px }] = history [label "New Request"]
[select "POST"] = method [input] = input [button "Send"] = sendBtn
[label "Headers"] = header

Expand All @@ -27,12 +27,12 @@ find:

wait

--- add New
--- add New API

goto "http://localhost:4200"

find:
[input 'Search'] [button 'xpath:body > eo-root > eo-pages > div > div > div > eo-api > nz-layout > nz-sider > div > nz-content > nz-tabset > div > div > div.ant-tabs-tabpane.ant-tabs-tabpane-active.ng-star-inserted > div > pc-api-group-tree > header > div']=addBtn
[input 'Search' { height: 22px }] [button '' { height: 32px; width: 32px }] = addBtn

addBtn -> hover

Expand All @@ -43,9 +43,9 @@ find:
newApi -> click

find:
[button "Save"]=save
[select "POST"]=method [input "/"]=path
[select "Root directory"] [input]=name
[button "Save"] = save
[select "POST"] = method [input "/"] = path
[select "Root Group"] [input] = name
# [input]=paramName [input]=desc [input]=example

method -> "GET"
Expand Down
2 changes: 1 addition & 1 deletion e2e/env.t
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ find:
env -> click

find:
[label "Environment"] [button { width: 32px }] = add
[label "Environment"] [img { height: 14px; width: 14px }] = add

add -> click

Expand Down
25 changes: 0 additions & 25 deletions e2e/group.spec.ts

This file was deleted.

2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"eo/*": ["./src/*"]
}
},
"include": ["**/*.d.ts", "./src/**/**.ts", "./src/**/**.js", "scripts/build.js"],
"include": ["**/*.d.ts", "./src/**/**.ts", "./src/**/**.js", "scripts/build.js", "e2e/test.ts", "e2e/test.ts"],
"exclude": ["node_modules", "**/*.spec.ts", "**/browser/**/*.js", "**/browser/**/*.ts", "out"],
"angularCompilerOptions": {
"enableIvy": true
Expand Down

0 comments on commit 31eb8f6

Please sign in to comment.