Where document.querySelector('body')points to Jasmine's tests?
document.querySelector('body')
Is it empty or what does it look like? Is a new page loaded in the default state for each test case, or is it shared with tests?
document.bodyis a test running HTML file into which each of your source and test files is loaded. It is available globally and is constantly there, just like in all tests.
document.body
Source: https://habr.com/ru/post/1652423/More articles:React: TypeError: Cannot read setState property from undefined - javascriptThread synchronization in a parallel task library (TPL) - multithreadingMySQL splits and concatenates values - mysqlVisual Studio doesn't recognize imported npm package? - javascriptПользовательский файл шаблона 404 в Drupal 8 - drupal-8How to display CloudWatch panel on a wall screen - amazon-web-servicesHow to use list comprehension with a list of variable number of file names? - pythonHow do we identify a set of nodes and add this set to another, where does the structure of the XML source change in XSLT? - xmlHow to distribute a python application with all the dependencies - pythonКак вы перемещаете атрибут в первом дочернем элементе родителя родительскому элементу в XSLT? - htmlAll Articles