If condition is true exit the while loop, but my while loop is exits after another loop attempted. 

```
let moveNavigation = 0;
            let currentItemFocus;
                let jsonString;
                let hasMovedList= false;

            currentItemFocus = yield page.getFocusedNode();
                    while (!hasMovedList) {
                        yield page.keys().press(page.keys().RIGHT);
                        currentItemFocus = yield page.getFocusedNode();
                        console.log(logger.modify.background.yellow(` inside while loop item focus node is ${JSON.stringify(currentItemFocus)}`));

                        hasMovedList= Object.values(currentItemFocus).includes(NAVIGATION_TO_LIST);
                        console.log(logger.modify.background.yellow(` has moved watchlist button status is ${(hasMovedList)}`));

                        moveNavigation++;
                    }

```