or run

npx @tessl/cli init
Log in

Version

Files

tile.json

rubric.jsonevals/scenario-5/

{
  "context": "This criteria evaluates how well the engineer uses Bowser's browser alias support capability to implement a browser compatibility checker. The focus is on correctly utilizing the isBrowser method with alias support and properly integrating Bowser's parser functionality.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Bowser import",
      "description": "Correctly imports or requires the Bowser package at the beginning of the implementation",
      "max_score": 10
    },
    {
      "name": "Parser instantiation",
      "description": "Uses Bowser.getParser() or Bowser.parse() to create a parser instance or get parsed results from the user agent string",
      "max_score": 20
    },
    {
      "name": "isBrowser method usage",
      "description": "Uses the isBrowser() method from the Parser class to check if the browser matches a given name or alias",
      "max_score": 30
    },
    {
      "name": "Alias support parameter",
      "description": "Passes the second parameter (includingAlias) to the isBrowser() method set to true to enable browser alias matching",
      "max_score": 25
    },
    {
      "name": "Iteration logic",
      "description": "Iterates through the compatibleBrowsers array to check each browser name/alias against the parsed user agent",
      "max_score": 10
    },
    {
      "name": "Correct return value",
      "description": "Returns true when a match is found using isBrowser with alias support, and false when no match is found",
      "max_score": 5
    }
  ]
}