TestProject Javascript SDK shows test report as passed eventhough test fails in SDK


I’m testing TestProject Javascript SDK based on GitHub - testproject-io/javascript-opensdk: TestProject OpenSDK for Node.js

The issue: I manage to run the test locally and I intentionally inserted some errors (#doesnotexist tags) to see how everything works. Test fails as it should locally, but TestProject report on the site looks green and passed each time.

Below is the example code

import { By } from 'selenium-webdriver';
import { Builder } from '@tpio/javascript-opensdk';

export const simpleTest = async (): Promise<void> => {
  const driver = await new Builder().forBrowser('chrome').withToken('mytokenhere...').build();

  await driver.get('https://example.testproject.io/web/');
  await driver.findElement(By.css('#name')).sendKeys('John Smith');
  await driver.findElement(By.css('#password')).sendKeys('12345');
  await driver.findElement(By.css('#doesnotexist')).click();

  const passed = await driver.findElement(By.css('#doesnotexist')).isDisplayed();

  console.log(passed ? 'Test Passed' : 'Test Failed');
  await driver.quit();


NoSuchElementError: no such element: Unable to locate element: {“method”:“css selector”,“selector”:“#doesnotexist”}

TestProject UI shows passed each time eventhough an error occurs: