【发布时间】:2019-07-31 07:10:16
【问题描述】:
我已尝试使用此代码在另一个规范文件中重新使用测试用例,但它显示错误。我已经使用带打字稿的量角器
login-spec.ts
export const test = function() {
describe("login", () => {
it("login",async()=>{
//lines of code
})
function-spec.ts
import {test} from './login-spec.ts'
describe("login", () => {
it("function",async()=>{
await test();
})
【问题讨论】:
标签: angularjs typescript automation protractor