0.0.5 • Published 3 years ago
testcafe-once-hook v0.0.5
testcafe-once-hook
This module provides TestCafe hooks executed once in a single browser even when you run tests in multiple browsers. This functionality is a workaround for the issue described in #1345.
The testcafe-once-hook module exports two functions:
oncePerFixtureruns in the first specified browser before and after all tests in a fixture. Unlike thefixture.beforeandfixture.afterhooks designed for server-side operations,oncePerFixtureallows you to execute test actions in the browser.oncePerTestruns in the first specified browser before and after each test in a fixture, while regularbeforeEachandafterEachhooks run in every browser.