{"id":25424405,"url":"https://github.com/maxgalbu/nightwatch-custom-commands-assertions","last_synced_at":"2025-04-06T04:10:21.177Z","repository":{"id":24158013,"uuid":"27547933","full_name":"maxgalbu/nightwatch-custom-commands-assertions","owner":"maxgalbu","description":"Nightwatch.js custom commands and assertions","archived":false,"fork":false,"pushed_at":"2022-12-12T04:37:59.000Z","size":53272,"stargazers_count":136,"open_issues_count":15,"forks_count":34,"subscribers_count":14,"default_branch":"master","last_synced_at":"2024-04-02T16:21:54.563Z","etag":null,"topics":["assertions","babel","gulp","javascript","markdox","nightwatchjs","selenium"],"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/maxgalbu.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":"Contributing.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-12-04T15:59:26.000Z","updated_at":"2023-08-04T03:16:08.000Z","dependencies_parsed_at":"2023-01-14T07:00:12.333Z","dependency_job_id":null,"html_url":"https://github.com/maxgalbu/nightwatch-custom-commands-assertions","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxgalbu%2Fnightwatch-custom-commands-assertions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxgalbu%2Fnightwatch-custom-commands-assertions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxgalbu%2Fnightwatch-custom-commands-assertions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxgalbu%2Fnightwatch-custom-commands-assertions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maxgalbu","download_url":"https://codeload.github.com/maxgalbu/nightwatch-custom-commands-assertions/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247430870,"owners_count":20937874,"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":["assertions","babel","gulp","javascript","markdox","nightwatchjs","selenium"],"created_at":"2025-02-16T23:16:04.066Z","updated_at":"2025-04-06T04:10:21.117Z","avatar_url":"https://github.com/maxgalbu.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Nightwatch custom commands and assertions\n\n[![Build Status](https://travis-ci.org/maxgalbu/nightwatch-custom-commands-assertions.svg?branch=master)](https://travis-ci.org/maxgalbu/nightwatch-custom-commands-assertions) [![npm version](https://badge.fury.io/js/nightwatch-custom-commands-assertions.svg)](http://badge.fury.io/js/nightwatch-custom-commands-assertions)\n\nThese are some commands and assertion I use when I'm testing with nightwatch.js and selenium.\n\n### How to use these things?\n\nYou can install it using npm:\n\n```\nnpm install nightwatch-custom-commands-assertions --save-dev\n```\n\nThen, open the nightwatch.json file in your editor (or [create it if it doesn't exist](http://nightwatchjs.org/guide#settings-file)) and edit the `custom_commands_path` and `custom_assertions_path` keys so they look like this:\n\n```json\n{\n\t... //your config\n\t\n\t\"custom_commands_path\" : \"node_modules/nightwatch-custom-commands-assertions/js/commands\",\n\t\"custom_assertions_path\" : \"node_modules/nightwatch-custom-commands-assertions/js/assertions\",\n\t\n\t... //your config again\n}\n```\n\nNow you should be able to use these commands/assertions when you call `nightwatch --test`.\n\n### Alternative ways of installing\n\n- Go into your `tests` folder (or where your nightwatch.json is) and do:\n  \n  ```\n  git clone https://github.com/maxgalbu/nightwatch-custom-commands-assertions.git\n  ```\n\n- Download the zipped repository [here](https://github.com/maxgalbu/nightwatch-custom-commands-assertions/archive/master.zip) and extract it wherever you want\n\nYou then need to open your nightwatch.json and edit `custom_commands_path` and `custom_assertions_path` according to where you cloned or extracted the repository. \n\n\n### Contributing\n\nSee [Contributing.md](https://github.com/maxgalbu/nightwatch-custom-commands-assertions/blob/master/Contributing.md).\n\n### List of commands\n\nSee [the docs folder](https://github.com/maxgalbu/nightwatch-custom-commands-assertions/blob/master/docs)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxgalbu%2Fnightwatch-custom-commands-assertions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaxgalbu%2Fnightwatch-custom-commands-assertions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxgalbu%2Fnightwatch-custom-commands-assertions/lists"}