From 6ae464e959227cc0b2fdc1bf4c6f902c5805c8ff Mon Sep 17 00:00:00 2001 From: lixiaoyu Date: Wed, 13 Aug 2025 10:38:15 +0800 Subject: [PATCH] *[task#147928,doing,1h,3h]revoke story in lite --- .../test/lib/changestatusinlite.ui.class.php | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/module/projectstory/test/lib/changestatusinlite.ui.class.php b/module/projectstory/test/lib/changestatusinlite.ui.class.php index a93b11d00e..441efb045f 100755 --- a/module/projectstory/test/lib/changestatusinlite.ui.class.php +++ b/module/projectstory/test/lib/changestatusinlite.ui.class.php @@ -97,4 +97,27 @@ class changeStatus extends tester return $this->success('评审目标成功'); } + + /** + * 运营界面撤销评审目标 + * Revoke story in lite + * + * @param array $storyUrl + * @return mixed + */ + public function revokeStory($storyUrl) + { + $this->switchVision('lite', 5); + $form = $this->initForm('projectstory', 'view', $storyUrl, 'appIframe-project'); + $form->wait(2); + $form->dom->revokeBtn->click(); + $form->wait(2); + $form->dom->confirmBtn->click(); + $viewPage = $this->initForm('projectstory', 'view', $storyUrl, 'appIframe-project'); + $viewPage->wait(2); + $status = $viewPage->dom->storyStatus->getText(); + return($status == $this->lang->story->statusList->draft) + ? $this->success('目标撤销评审成功') + : $this->failed('目标撤销评审失败'); + } }