{"id":16376410,"url":"https://github.com/rochdev/tinto","last_synced_at":"2025-06-11T07:31:53.246Z","repository":{"id":29957146,"uuid":"33503849","full_name":"rochdev/tinto","owner":"rochdev","description":"A functional testing library for component-based web applications","archived":false,"fork":false,"pushed_at":"2019-04-30T18:11:32.000Z","size":251,"stargazers_count":8,"open_issues_count":19,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-14T19:52:48.216Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rochdev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-04-06T20:24:55.000Z","updated_at":"2022-07-29T02:19:45.000Z","dependencies_parsed_at":"2022-09-07T08:41:21.637Z","dependency_job_id":null,"html_url":"https://github.com/rochdev/tinto","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rochdev%2Ftinto","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rochdev%2Ftinto/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rochdev%2Ftinto/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rochdev%2Ftinto/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rochdev","download_url":"https://codeload.github.com/rochdev/tinto/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rochdev%2Ftinto/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259221842,"owners_count":22823974,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-11T03:24:36.129Z","updated_at":"2025-06-11T07:31:53.223Z","avatar_url":"https://github.com/rochdev.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tinto\n[![Version](https://img.shields.io/npm/v/tinto.svg)](https://www.npmjs.com/package/tinto)\n[![Build Status](https://travis-ci.org/rochdev/tinto.svg?branch=master)](https://travis-ci.org/rochdev/tinto)\n[![Test Coverage](https://codeclimate.com/github/rochdev/tinto/badges/coverage.svg)](https://codeclimate.com/github/rochdev/tinto)\n[![Code Climate](https://codeclimate.com/github/rochdev/tinto/badges/gpa.svg)](https://codeclimate.com/github/rochdev/tinto)\n[![Dependency Status](https://gemnasium.com/rochdev/tinto.svg)](https://gemnasium.com/rochdev/tinto)\n[![Inline docs](http://inch-ci.org/github/rochdev/tinto.svg?branch=master)](http://inch-ci.org/github/rochdev/tinto)\n\nA functional testing framework for component-based web applications\n\n## Usage\n\n### Installation\n\n```sh\n$ npm install --save-dev tinto\n```\n\n### Configuration\n\nTinto is configured from an optional `tinto.conf.js` file that should be placed in your project root. It should export the configuration object directly.\n\n#### Options\n\n* **includeStack**: Whether or not to include a stack trace in assertion error messages.\n* **bundles**: An array of bundle names or bundle instances to load.\n* **browser**: Which browser to use. See the WebDriver documentation for the list of supported browsers.\n\n#### Defaults\n\n```js\n{\n  includeStack: false,\n  bundles: [],\n  browser: 'firefox'\n}\n```\n\n### Assertions syntax\n\n#### Components\n\n##### Property assertion\n```js\nsearchButton.should.have.text('Search');\n```\n\n##### Property assertion (alternate syntax)\n```js\nsearchButton.text.should.equal('Search');\n```\n\n##### State assertion\n```js\nsearchButton.should.be.enabled;\n```\n\n##### Count assertion\n```js\ngrid.should.have(3).rows;\n```\n\n##### Equality assertion\n```js\ngrid.rows(0).should.equal(firstRow);\n```\n\n##### Containing assertion\n```js\ngrid.should.contain(firstRow, secondRow);\n```\n\n##### Multiple assertions\n```js\nsearchButton.should.have.text('Search').and.be.enabled;\n```\n\n##### Multiple assertions (alternate syntax)\n```js\nsearchButton.should(\n  have.text('Search'),\n  be.enabled\n);\n```\n\n##### Awaiting assertion\n```js\nsearchButton.should.eventually.have.text('Search').and.be.enabled;\n```\n\n##### Awaiting assertion (alternate syntax)\n```js\nsearchButton.should.eventually(\n  have.text('Search'),\n  be.enabled\n);\n```\n\n### Component definition\n\n##### ES5\n```js\nfunction Grid() {\n  Component.apply(this, arguments);\n\n  this.getter('rows', function() {\n    return this.find('tr');\n  });\n}\n\ntinto.inherits(Grid, Component);\n```\n\n##### ES6\n```js\nclass Grid extends Component {\n  get rows() {\n    return this.find('tr');\n  }\n}\n```\n\n##### .extend\n```js\nvar Grid = Component.extend({\n  get rows() {\n    return this.find('tr');\n  }\n});\n```\n\n### Command-line interface\n\nIn order to use the CLI, you must install tinto globally. You can then run `tinto --help` to list available commands.\n\n## Examples\n\nSee the [example](example) folder for a complete example.\n\n## License\n\n[MIT License](http://en.wikipedia.org/wiki/MIT_License)\n\n## Credits\n\nThis project was inspired by the excellent [Testatoo](http://www.testatoo.org) functional testing library for Java.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frochdev%2Ftinto","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frochdev%2Ftinto","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frochdev%2Ftinto/lists"}