{"id":19739501,"url":"https://github.com/suitcss/components-test","last_synced_at":"2025-12-12T05:56:59.008Z","repository":{"id":11288483,"uuid":"13699706","full_name":"suitcss/components-test","owner":"suitcss","description":"Component CSS to help test the visual presentation of components","archived":false,"fork":false,"pushed_at":"2016-10-15T15:38:29.000Z","size":23,"stargazers_count":19,"open_issues_count":0,"forks_count":4,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-04-05T22:51:15.066Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://suitcss.github.io/components-test/test/","language":"CSS","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/suitcss.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-10-19T10:57:05.000Z","updated_at":"2020-12-13T20:35:23.000Z","dependencies_parsed_at":"2022-09-01T10:50:58.615Z","dependency_job_id":null,"html_url":"https://github.com/suitcss/components-test","commit_stats":null,"previous_names":["suitcss/test"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suitcss%2Fcomponents-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suitcss%2Fcomponents-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suitcss%2Fcomponents-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suitcss%2Fcomponents-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/suitcss","download_url":"https://codeload.github.com/suitcss/components-test/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251649132,"owners_count":21621478,"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-11-12T01:17:30.579Z","updated_at":"2025-12-12T05:56:58.957Z","avatar_url":"https://github.com/suitcss.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SUIT CSS components-test\n\n[![Build Status](https://travis-ci.org/suitcss/components-test.svg?branch=master)](https://travis-ci.org/suitcss/components-test)\n\nCSS to help test the visual presentation of components.\n\nRead more about [SUIT CSS](https://github.com/suitcss/suit/).\n\n## Installation\n\n* [npm](https://www.npmjs.org/package/suitcss-components-test): `npm install suitcss-components-test`\n* Download: [zip](https://github.com/suitcss/components-test/releases/latest)\n\n## Available classes\n\n* `Test` - The core component class\n* `Test-title` - The test title\n* `Test-describe` - Describes a component configuration\n* `Test-it` - Describes an expected outcome of a configuration\n* `Test-run` - A specific context within which the component is tested\n\n## Usage\n\nThis is an example of an idiomatic SUIT CSS test file:\n\n```html\n\u003c!DOCTYPE html\u003e\n\u003cmeta charset=\"utf-8\"\u003e\n\u003ctitle\u003eComponentName [component] - SUIT CSS\u003c/title\u003e\n\u003cmeta name=\"viewport\" content=\"initial-scale=1,width=device-width\"\u003e\n\u003clink rel=\"stylesheet\" href=\"../build/test.css\"\u003e\n\u003cstyle\u003e\n  #textWrapping {\n    width: 300px;\n  }\n\n  #modifier-textWrapping {\n    width: 300px;\n  }\n\u003c/style\u003e\n\n\u003cdiv class=\"Test\"\u003e\n  \u003ch1 class=\"Test-title\"\u003eSUIT CSS: \u003ca href=\"https://github.com/repo/component-name\"\u003eComponentName\u003c/a\u003e component tests\u003c/h1\u003e\n\n  \u003ch2 class=\"Test-describe\"\u003e.ComponentName\u003c/h2\u003e\n  \u003ch3 class=\"Test-it\"\u003erenders\u003c/h3\u003e\n  \u003cdiv class=\"Test-run\" id=\"renders\"\u003e\n    \u003c!-- component configuration 1 --\u003e\n  \u003c/div\u003e\n  \u003ch3 class=\"Test-it\"\u003eprevents text wrapping\u003c/h3\u003e\n  \u003cdiv class=\"Test-run\" id=\"textWrapping\"\u003e\n    \u003c!-- component configuration 1 --\u003e\n  \u003c/div\u003e\n\n  \u003ch2 class=\"Test-describe\"\u003e.ComponentName--modifier\u003c/h2\u003e\n  \u003ch3 class=\"Test-it\"\u003erenders larger\u003c/h3\u003e\n  \u003cdiv class=\"Test-run\" id=\"modifier-larger\"\u003e\n    \u003c!-- component configuration 2 --\u003e\n  \u003c/div\u003e\n  \u003ch3 class=\"Test-it\"\u003eallows text wrapping\u003c/h3\u003e\n  \u003cdiv class=\"Test-run\" id=\"modifier-textWrapping\"\u003e\n    \u003c!-- component configuration 2 --\u003e\n  \u003c/div\u003e\n\u003c/div\u003e\n```\n\n## Testing\n\nInstall [Node](http://nodejs.org) (comes with npm).\n\n```\nnpm install\n```\n\nTo generate a build:\n\n```\nnpm run build\n```\n\nTo lint code with [postcss-bem-linter](https://github.com/postcss/postcss-bem-linter) and [stylelint](http://stylelint.io/)\n\n```\nnpm run lint\n```\n\nTo generate the testing build.\n\n```\nnpm run build-test\n```\n\nTo watch the files for making changes to test:\n\n```\nnpm run watch\n```\n\nBasic visual tests are in `test/index.html`.\n\n## Browser support\n\n* Google Chrome (latest)\n* Opera (latest)\n* Firefox 4+\n* Safari 5+\n* Internet Explorer 8+\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuitcss%2Fcomponents-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsuitcss%2Fcomponents-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuitcss%2Fcomponents-test/lists"}