{"id":20531979,"url":"https://github.com/fhengartner/flos-ember-test-helpers","last_synced_at":"2026-05-09T18:42:19.268Z","repository":{"id":57238656,"uuid":"85633089","full_name":"fhengartner/flos-ember-test-helpers","owner":"fhengartner","description":"Ember CLI Addon providing test helpers","archived":false,"fork":false,"pushed_at":"2017-03-22T21:55:52.000Z","size":22,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-20T03:03:07.527Z","etag":null,"topics":["ember","ember-addon","ember-testing"],"latest_commit_sha":null,"homepage":"","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/fhengartner.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2017-03-20T22:21:54.000Z","updated_at":"2017-06-15T19:53:13.000Z","dependencies_parsed_at":"2022-08-26T14:07:17.621Z","dependency_job_id":null,"html_url":"https://github.com/fhengartner/flos-ember-test-helpers","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fhengartner%2Fflos-ember-test-helpers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fhengartner%2Fflos-ember-test-helpers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fhengartner%2Fflos-ember-test-helpers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fhengartner%2Fflos-ember-test-helpers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fhengartner","download_url":"https://codeload.github.com/fhengartner/flos-ember-test-helpers/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242138801,"owners_count":20078007,"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":["ember","ember-addon","ember-testing"],"created_at":"2024-11-16T00:11:32.723Z","updated_at":"2026-05-09T18:42:14.647Z","avatar_url":"https://github.com/fhengartner.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# What is flos-ember-test-helpers\n\nThis addon provides and registers test helpers for use in the testing of your application.\n\n# Provided Helpers\n\n## clickAndAssertPath\n\n```js\nclickAndAssertPath(assert, selector, expectedPath);\n```\n\nClick on the element specified by `selector` and assert that it has transitioned to route `expectedPath`.\n\n```js\n// Example:\nclickAndAssertPath(assert, 'button', 'other.route');\n```\n\n## visitAndAssertPath\n\n```js\nvisitAndAssertPath(assert, path, expectedPath);\n```\n\nVisit path and assert that it has transitioned to route `expectedPath`.\n\n```js\n// Example:\nvisitAndAssertPath(assert, '/a/path', 'a.path');\nvisitAndAssertPath(assert, '/will/redirect', 'expected.route');\n```\n\n# How to use this addon in your application\n  \n## Install\n\n```\nember install flos-ember-test-helpers\n```\n\n## Using in acceptance tests\n\nFor each test helper you wish to use, you will need to import them.\n\n* Add `import './flos-test-helpers/click-and-assert-path';` to the beginning of the `tests/helpers/start-app.js` file\n* Add `import './flos-test-helpers/visit-and-assert-path';` to the beginning of the `tests/helpers/start-app.js` file\n* Ignore globals in eslint / jshint\n  * Add `\"clickAndAssertPath\": true,` to the globals section of the `.eslintrc`\n  * Add \"clickAndAssertPath\", to the predef section of the `/tests/.jshintrc` file\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffhengartner%2Fflos-ember-test-helpers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffhengartner%2Fflos-ember-test-helpers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffhengartner%2Fflos-ember-test-helpers/lists"}