{"id":20712846,"url":"https://github.com/fusionjs/browser-tests","last_synced_at":"2025-04-23T07:54:43.275Z","repository":{"id":51812427,"uuid":"109200098","full_name":"fusionjs/browser-tests","owner":"fusionjs","description":"Example app for cross-browser testing","archived":false,"fork":false,"pushed_at":"2025-03-14T03:43:30.000Z","size":1753,"stargazers_count":6,"open_issues_count":5,"forks_count":8,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-29T22:51:17.261Z","etag":null,"topics":[],"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/fusionjs.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-11-02T00:49:02.000Z","updated_at":"2020-01-15T17:17:44.000Z","dependencies_parsed_at":"2023-11-16T13:45:30.907Z","dependency_job_id":"e35e2e76-33fb-4a36-8aeb-bd362099b933","html_url":"https://github.com/fusionjs/browser-tests","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fusionjs%2Fbrowser-tests","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fusionjs%2Fbrowser-tests/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fusionjs%2Fbrowser-tests/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fusionjs%2Fbrowser-tests/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fusionjs","download_url":"https://codeload.github.com/fusionjs/browser-tests/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250395199,"owners_count":21423376,"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-17T02:22:10.666Z","updated_at":"2025-04-23T07:54:43.247Z","avatar_url":"https://github.com/fusionjs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# browser-tests\n\n[![Build status](https://badge.buildkite.com/97cbb370d16a1aa622bc2d8c3475b887475be2710f0370fab9.svg?branch=master)](https://buildkite.com/uberopensource/browser-tests)\n\nCI and adhoc testing for cross browser API support using nightwatch, selenium and saucelabs\n\n## Cross-browser testing using Buildkite CI\n\nAfter each push Buildkite runs cross-browser UI tests over core libraries and plugins\n\n## Running Ad hoc chrome and firefox tests locally\n\nIn Chrome\n`yarn test-chrome`\nIn Firefox\n`yarn test-firefox`\n\n### Running cross-browser tests locally\n\nYou can run cross-browser tests locally leveraging docker and Sauce Labs by running the following:\n\n```\ndocker-compose run\nSAUCE_USERNAME=... SAUCE_ACCESS_KEY=... docker-compose run browser-tests .buildkite/run-all-tests.sh\n```\n\n## Running Ad hoc cross-browser tests remotely\n\n(For convenience you should add SAUCE_USERNAME and SAUCE_ACCESS_KEY as environment variables)\n\n1.  Start the app server\\\n    `yarn dev`\n1.  Start sauce connect\\\n    `sc -u \u003csaucelabs username\u003e -k \u003csaucelabs access key\u003e`\n1.  Run the tests remotely\\\n    run specific test: `yarn test-remote -- --env ie-11`\\\n    run all tests: `yarn test-remote`\n\n## The Tests\n\n### Basic UI Test\n\nRuns simple UI over core fusion libraries and plugins. In theory should be sufficient to verify necessary API/polyfill support, though we should add more UI interactions to improve confidence level.\n\n### Polyfills Test\n\nOff by default. Tests for a selection of ES2015+ utils which are not transpiled by Babel at buildtime. Tested utils are somewhat arbitary as not all are necessarily required by fusion, so only uncomment if you want to test for specific API/polyfill support.\n\n## Nightwatch Configuration files\n\n* Buildkite: `nightwatch-ci.js`\n* Ad Hoc (local): `nightwatch.js`\n* Ad Hoc (remote): `nightwatch-remote.js`\n\n**Test folder / file**\\\n`src_folders: ['src/test/browser/index.js'],`\n\n**Test environments**\\\ne.g.\n\n```js\n'chrome-mac': {\n  desiredCapabilities: {\n    browserName: 'chrome',\n    platform: 'macOS 10.12',\n  },\n},\n```\n\nTo add additional test environments see https://wiki.saucelabs.com/display/DOCS/Platform+Configurator#/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffusionjs%2Fbrowser-tests","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffusionjs%2Fbrowser-tests","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffusionjs%2Fbrowser-tests/lists"}