60%
This commit is contained in:
@@ -253,6 +253,34 @@ process.exitCode = 1;
|
||||
`${routeKey} 生产合同不得保留未落地写接口的成功结果`,
|
||||
);
|
||||
}
|
||||
assert.deepStrictEqual(
|
||||
productionRoutes.G01.resultOperations,
|
||||
["genealogy-created"],
|
||||
"G01 必须只接受 G03 已落地的真实创建结果",
|
||||
);
|
||||
{
|
||||
const targetPage = createPage(productionRoutes, "G01");
|
||||
const productionHarness = await createHarness({
|
||||
routes: productionRoutes,
|
||||
stack: [targetPage, createPage(productionRoutes, "G03")],
|
||||
});
|
||||
const result = {
|
||||
operation: "genealogy-created",
|
||||
entityId: "genealogy-created-by-api",
|
||||
refresh: true,
|
||||
};
|
||||
assert.strictEqual(
|
||||
await productionHarness.navigation.finishPage("G01", {}, result),
|
||||
true,
|
||||
"G03 真实创建成功后必须能回流 G01",
|
||||
);
|
||||
assert.strictEqual(productionHarness.calls[0].method, "navigateBack");
|
||||
assert.deepStrictEqual(
|
||||
productionHarness.navigation.consumeNavigationResult("G01"),
|
||||
result,
|
||||
"G01 必须收到真实创建完成结果",
|
||||
);
|
||||
}
|
||||
{
|
||||
const rejectionCases = [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user