{"id":18270645,"url":"https://github.com/ruslanxdev/hermione-assert-view-extended","last_synced_at":"2025-04-05T01:30:45.200Z","repository":{"id":56202603,"uuid":"171038554","full_name":"ruslanxdev/hermione-assert-view-extended","owner":"ruslanxdev","description":"Hermione plugin for extend assertView command.","archived":false,"fork":false,"pushed_at":"2022-09-28T20:37:53.000Z","size":33,"stargazers_count":1,"open_issues_count":2,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-20T20:19:12.334Z","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/ruslanxdev.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":"2019-02-16T18:43:22.000Z","updated_at":"2022-09-19T08:01:46.000Z","dependencies_parsed_at":"2022-08-15T14:40:10.980Z","dependency_job_id":null,"html_url":"https://github.com/ruslanxdev/hermione-assert-view-extended","commit_stats":null,"previous_names":["ruslankhh/hermione-assert-view-extended"],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruslanxdev%2Fhermione-assert-view-extended","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruslanxdev%2Fhermione-assert-view-extended/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruslanxdev%2Fhermione-assert-view-extended/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruslanxdev%2Fhermione-assert-view-extended/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ruslanxdev","download_url":"https://codeload.github.com/ruslanxdev/hermione-assert-view-extended/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247276040,"owners_count":20912285,"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-05T11:38:47.181Z","updated_at":"2025-04-05T01:30:44.893Z","avatar_url":"https://github.com/ruslanxdev.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hermione-assert-view-extended\n\nHermione plugin for extend assertView command. Inspired [hermione-ignore](https://github.com/deemidroll/hermione-ignore).\n\n## Install\n\n```\nnpm i -D hermione-assert-view-extended\n```\n\n## Usage\n\nSet options for the plugin in your hermione config:\n```js\n{\n    hooks: {\n        beforeEach: function(name, selector, options) {\n            return this.browser.moveTo(0, 0);\n        },\n        afterEach: function(name, selector, options) {\n            console.log(`Asserted view '${name}' for '${selector}' selector.`);\n        }\n    },\n    globalStyles: {\n        animationDisabled: true,\n        redraw: true,\n        // Elements will be covered with black rect.\n        ignoreElements: [\n            '.classname1'\n        ],\n        // Elements will be hidden with `opacity: 0`.\n        invisibleElements: [\n            '.classname3'\n        ],\n        // Elements will be hidden with `display: none`.\n        hideElements: [\n            '.classname2'\n        ],\n        customCSS: `\n            body {\n                background-color: red;\n            }\n        `\n    }\n}\n```\n\n## Options\n\n| Option | Default | Description |\n| --- | --- | --- |\n| `hooks` | | Hermione commands which will be called before/after call assertView in `then()`. |\n| `hooks.beforeEach` | | Hermione commands which will be called before call assertView and first inner execute. |\n| `hooks.afterEach` | | Hermione commands which will be called after call assertView and last inner execute. |\n| `globalStyles` | | CSS injection appended in `\u003chead\u003e` before call assertView. It will be removed after call assertView. |\n| `globalStyles.animationDisabled` | `false` | Disable CSS animation (`transition-duration: 0s`, `animation-duration: 0s`, etc.). |\n| `globalStyles.redraw` | `false` | Bowser redraw page after apply styles. It will be `true`, if you set `redrawElements`. |\n| `globalStyles.redrawMode` | `'medium'` | Bowser redraw page after apply styles.\u003cbr\u003e\u003cul\u003e\u003cli\u003e`'soft'` — only repaint without reflow with `transform: translateZ(0)`;\u003c/li\u003e\u003cli\u003e`'medium'` — reflow and repaint with `opacity: 0`;\u003c/li\u003e\u003cli\u003e`'hard'` — reflow and repaint with `display: none`.\u003c/li\u003e\u003c/ul\u003e |\n| `globalStyles.redrawElements` | `['body']` | Elements will be redrawed. |\n| `globalStyles.redrawTimeout` | | Timeout after redraw elements. |\n| `globalStyles.ignoreElements` | | Elements will be covered with black rect. |\n| `globalStyles.invisibleElements` | | Elements will be hidden with `opacity: 0`. |\n| `globalStyles.hideElements` | | Elements will be hidden with `display: none`. |\n| `globalStyles.customCSS` | | Custom styles. |\n\n## Licence\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fruslanxdev%2Fhermione-assert-view-extended","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fruslanxdev%2Fhermione-assert-view-extended","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fruslanxdev%2Fhermione-assert-view-extended/lists"}