maciejmaciejewski / azure-pipelines-protractor

Embed Protractor HTML report in Azure Pipelines
MIT License
3 stars 3 forks source link

Problem with multiple tabs #19

Open furans0wa opened 4 years ago

furans0wa commented 4 years ago

Hi,

I am getting the following error when trying to view the details of a run

image

There are 4 steps involved in the build

  1. Run a specific suite of protractor tests --- No test error
  2. Publish report of step 1 in first tab
  3. Run another specific suite of protractor tests -- 2 test errors, generates screenshots of failed tests
  4. Publish report of step 3 in second tab

The test results are produced in different folders. The second tab works fine, but the first tab doesn't because all items doesn't have the screenshotShotFile property. Looking at the console, it fails there:

contentJSON.find((x) => x.screenShotFile.includes(screenshot.name))

Can you help with this? Thanks!