Skip to content

Commit

Permalink
fix(e2e): fix e2e record btn css style & only record current page event
Browse files Browse the repository at this point in the history
re #80
  • Loading branch information
fanniehuang committed Oct 19, 2020
1 parent 1ef084b commit f2960f0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions packages/wxa-cli/src/tester/wxa-e2eTest/e2eRecordBtn.wxa
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,9 @@ wxa.launchComponent(e2eBtn);
width: 200rpx;
left: 0;
z-index: 99999999999;
background-color: #fff;
color: #333;
border: 1px solid #bbb;
}
.e2e-input{
background-color: #fff;
Expand Down
2 changes: 1 addition & 1 deletion packages/wxa-cli/src/tester/wxa-e2eTest/e2eTestSuite.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const shouldRecord = function(type, ...args) {
return false;
}
// 当前页面的操作才记录
if (!this.$$isCurrentPage) {
if (getCurrentPages()[0].__wxWebviewId__ !== this.__wxWebviewId__){
return false;
}
if (e.target.dataset.e2ebtn === 'true') {
Expand Down

0 comments on commit f2960f0

Please sign in to comment.