*[uitest] Modify xpath.

This commit is contained in:
yulujie
2025-08-06 15:22:16 +08:00
committed by tianshujie
parent b1397260e2
commit ba6654181d
2 changed files with 3 additions and 1 deletions
@@ -12,6 +12,7 @@ class linkStoryTester extends tester
public function checkNoProductInfo()
{
$form = $this->initForm('execution', 'story', array('execution' => '3'), 'appIframe-execution');
$form->wait(1);
$form->dom->btn($this->lang->execution->linkStory)->click();
$form->wait(1);
if($form->dom->alertModal('text') == $this->lang->execution->errorNoLinkedProducts) return $this->success('执行未关联产品时提示正确');
@@ -28,6 +29,7 @@ class linkStoryTester extends tester
public function linkStory()
{
$form = $this->initForm('execution', 'linkstory', array('execution' => '2'), 'appIframe-execution');
$form->wait(1);
$name = $form->dom->firstName->getText();
$form->dom->firstCheckbox->click();
$form->dom->saveBtn->click();
+1 -1
View File
@@ -13,7 +13,7 @@ class storyPage extends page
'num' => "//*[@id='table-execution-story']/div[3]/div[2]/strong[1]",
/* 列表 */
'firstCheckbox' => "//*[@id='table-execution-story']/div[2]/div[1]/div/div[1]/div/div",
'firstName' => "//*[@id='table-execution-story']/div[2]/div[1]/div/div[2]/div/a",
'firstName' => "//*[@id='table-execution-story']/div[2]/div[1]//div[@data-col='title']//a",
'firstPhase' => "//*[@id='table-execution-story']/div[2]/div[2]/div/div[6]/div/span",
'firstAssignTo' => "//*[@id='table-execution-story']/div[2]/div[2]/div/div[7]/div/a/span",
'firstUnlinkBtn' => "//*[@id='table-execution-story']/div[2]/div[3]/div/div/div/nav/a[last()]",