Detect page reload from Cypress test

1 · Gleb Bahmutov · Aug. 29, 2019, 3:21 p.m.
Cypress Test Runner has built-in retry-ability that is so sweet. Instead of hard-coding waits into your tests, all you need is figure out how to query something and how to follow with an assertion. The test will keep querying until the assertion passes.Do you need to detect when a new property gets added to an object? Wrap the object and assert that the new property is preset.12345678// an object without a propertyconst o = {}// property "id" gets added after a delaysetTimeout(() => { o.id = 'a...