codeceptjs / codeceptjs/CodeceptJS

datatable + mochawesome fails to look for correct picture name

オープン
#1,737 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
JavaScript
スター
4.2k
フォーク
757
平均マージ
2日 9時間
マージ済み PR(30日)
16

説明

### Current Behavior
Failing a DataTable test does not look for correct screenshot in mochawesome report.

What it tries to look for is
\`${testname}__%7B${datatableProperty}%7D.failed.png\`

For example:
`The_table_is_sorted___%7Blogin_username@mail.com%7D.failed.png`

### Expected Behavior
\`${testname}.failed.png\`

For example:
`The_table_is_sorted.failed.png`

* CodeceptJS version: 2.1.5
* NodeJS Version: 10.15.3
* Operating System: arch linux
* WebDriverIO version: 5.6.0
* Mochawesome config:
```js
mochawesome: {
stdout: '-',
options: {
autoOpen: true,
enableCharts: true,
inlineAssets: true,
json: false,
quiet: true,
reportDir: './output',
reportFilename: 'result',
reportPageTitle: 'E2E Test Reports',
reportTitle: `Test Results`,
},
},
```

Simplest scenario
```js
let accounts = new DataTable(['login']);
accounts.add(['davert']);

Data(accounts).Scenario('Test Login', I => {
assert.equal(true, false);
});
```

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。