-
-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: 添加任务点是否完成检测,不重复执行已完成任务点, 修复判断题不选择的BUG
- Loading branch information
Showing
11 changed files
with
91 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { defaultQuestionResolve } from "../../src/browser/core/worker/question.resolver"; | ||
|
||
const resolvers = defaultQuestionResolve({} as any); | ||
|
||
const res = resolvers["judgement"]( | ||
[{ answers: [{ answer: "True", question: "" }] } as any], | ||
[{ innerText: "√" } as any, { innerText: "×" } as any], | ||
(type, answer, option, ctx) => { | ||
console.log({ type, answer, option, ctx }); | ||
} | ||
); | ||
|
||
console.log(res); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { test } from "@playwright/test"; | ||
import { CX } from "../../../src"; | ||
|
||
import config from "../../local.config"; | ||
|
||
test("school login", async ({ page }) => { | ||
await CX.schoolLogin(page, config.cx.login.school); | ||
}); | ||
|
||
test("phone login", async ({ page }) => { | ||
await CX.phoneLogin(page, config.cx.login.phone); | ||
}); | ||
|
||
test("other login", async ({ page }) => { | ||
await CX.otherLogin(page, config.cx.login.other); | ||
}); |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { test } from "@playwright/test"; | ||
import { ZHS } from "../../../src"; | ||
import config from "../../local.config"; | ||
|
||
test("phone login", async ({ page }) => { | ||
await ZHS.phoneLogin(page, config.zhs.login.phone); | ||
}); | ||
|
||
test("school login", async ({ page }) => { | ||
await ZHS.schoolLogin(page, config.zhs.login.school); | ||
}); | ||
|
||
test("other login", async ({ page }) => { | ||
await ZHS.otherLogin(page, config.zhs.login.other); | ||
}); |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.