* [bug#64415] Change the target in release view when use tutorial.
This commit is contained in:
@@ -31,8 +31,8 @@ class viewPage extends page
|
||||
/*发布关联Bug的元素*/
|
||||
'resolvedBugTab' => "//*[@id='mainContent']/div[2]/div/div/div/div/ul/li[2]/a/span",
|
||||
'linkBugBtn' => "//*[@id='mainContent']/div[2]/div/div/div/div[2]/div[2]/div/button/span",
|
||||
'selectAllBug' => "//*[@id='unlinkBugList']/div[3]/div/div/label",
|
||||
'linkBugBtnBottom' => "//*[@id='unlinkBugList']/div/nav/button/span",
|
||||
'selectAllBug' => "//*[@id='linkBugList']/div[3]/div/div/label",
|
||||
'linkBugBtnBottom' => "//*[@id='linkBugList']/div/nav/button/span",
|
||||
'resolvedBugNum' => "//*[@id='resolvedBugDTable']/div[3]/div[2]/strong",
|
||||
'unlinkFirBugBtn' => "//*[@id='resolvedBugDTable']/div[2]/div[3]/div/div/div/nav/a/i",
|
||||
'allResolvedBugBtn' => "//*[@id='resolvedBugDTable']/div[3]/div/div/label",
|
||||
|
||||
@@ -36,7 +36,7 @@ searchForm
|
||||
$checkedRows = array_values(array_filter(array_map(function($bug) use($type) {return ($type == 'leftBug' or $bug->status == 'resolved' or $bug->status == 'closed') ? $bug->id : 0;}, $allBugs)));
|
||||
dtable
|
||||
(
|
||||
set::id('unlinkBugList'),
|
||||
set::id($type == 'leftBug' ? 'linkLeftBugList': 'linkBugList'),
|
||||
set::userMap($users),
|
||||
set::checkable(true),
|
||||
set::cols($cols),
|
||||
|
||||
@@ -13,6 +13,7 @@ modalHeader();
|
||||
|
||||
formPanel
|
||||
(
|
||||
set::id('publishForm'),
|
||||
set::actions(array('submit')),
|
||||
formRow
|
||||
(
|
||||
|
||||
@@ -481,14 +481,14 @@ $productManage->basic->tasks['releaseManage']['steps'][] = array(
|
||||
|
||||
$productManage->basic->tasks['releaseManage']['steps'][] = array(
|
||||
'type' => 'selectRow',
|
||||
'target' => 'div.dtable div[data-col="id"][data-row="1"]',
|
||||
'target' => '#linkBugList div.dtable-body div[data-col="id"][data-row="1"]',
|
||||
'page' => 'release-view',
|
||||
'title' => $lang->tutorial->productManage->releaseManage->step11->name
|
||||
);
|
||||
|
||||
$productManage->basic->tasks['releaseManage']['steps'][] = array(
|
||||
'type' => 'click',
|
||||
'target' => 'div.dtable-footer button.linkObjectBtn',
|
||||
'target' => '#linkBugList div.dtable-footer button.linkObjectBtn',
|
||||
'page' => 'release-view',
|
||||
'title' => $lang->tutorial->productManage->releaseManage->step12->name,
|
||||
'desc' => $lang->tutorial->productManage->releaseManage->step12->desc
|
||||
@@ -512,14 +512,14 @@ $productManage->basic->tasks['releaseManage']['steps'][] = array(
|
||||
|
||||
$productManage->basic->tasks['releaseManage']['steps'][] = array(
|
||||
'type' => 'selectRow',
|
||||
'target' => 'div.dtable div[data-col="id"][data-row="1"]',
|
||||
'target' => '#linkLeftBugList div.dtable-body div[data-col="id"][data-row="1"]',
|
||||
'page' => 'release-view',
|
||||
'title' => $lang->tutorial->productManage->releaseManage->step15->name
|
||||
);
|
||||
|
||||
$productManage->basic->tasks['releaseManage']['steps'][] = array(
|
||||
'type' => 'click',
|
||||
'target' => 'div.dtable-footer button.linkObjectBtn',
|
||||
'target' => '#linkLeftBugList div.dtable-footer button.linkObjectBtn',
|
||||
'page' => 'release-view',
|
||||
'title' => $lang->tutorial->productManage->releaseManage->step16->name,
|
||||
'desc' => $lang->tutorial->productManage->releaseManage->step16->desc
|
||||
@@ -535,12 +535,14 @@ $productManage->basic->tasks['releaseManage']['steps'][] = array(
|
||||
|
||||
$productManage->basic->tasks['releaseManage']['steps'][] = array(
|
||||
'type' => 'form',
|
||||
'target' => '#publishForm',
|
||||
'page' => 'release-view',
|
||||
'title' => $lang->tutorial->productManage->releaseManage->step18->name
|
||||
);
|
||||
|
||||
$productManage->basic->tasks['releaseManage']['steps'][] = array(
|
||||
'type' => 'saveForm',
|
||||
'target' => '#publishForm button[type="submit"]',
|
||||
'page' => 'release-view',
|
||||
'title' => $lang->tutorial->productManage->releaseManage->step19->name,
|
||||
'desc' => $lang->tutorial->productManage->releaseManage->step19->desc
|
||||
|
||||
Reference in New Issue
Block a user