fix: Replacing timeout with interval for compatibility with Protractor