Posted 7 April 2020, 1:08 am EST - Updated 3 October 2022, 7:32 am EST
Hi Team,
We are using angular testabilities to check the page for stability. Looks like when we select a date from previous month, the page becomes UNSTABLE.
Below is the sample code:
function isPageStable() {
var testabilities = document.defaultView.getAllAngularTestabilities();
for (var i=0; i< testabilities.length; i++) {
var stable = testabilities[i].isStable();
if(!stable)
return false; // Page is UNSTABLE
}
return true; // Page is STABLE
}
It returns TRUE if the we select date from the same month.
When we choose a back date in sei-calendar, and then executes the above script, it returns FALSE.
Steps to reproduce:
- "
Copy/paste the script mentioned on the console.
Choose any date within the current month.
Call isPageStable() on the console.It will return True.(See PASSED.jpg attached)
Choose any date from previous month
call isPageStable() on the console. It will return FALSE.(See Failed.jpg attached)
"
See stackblitz here:
https://stackblitz.com/edit/wijmo-calendar-not-stable?file=src/app/hello.component.ts
See screenshots attached.