Skip to content

AePageObjects::Waiter.wait_until should detect when time is frozen #96

@dtognazzini

Description

@dtognazzini

In it's a common practice to stub the Time class in Ruby in tests. AePageObjects::Waiter.wait_until uses Time to retry the provided block until some condition is met. If Time is stubbed, the retry will continue indefinitely.

Update AePageObjects::Waiter.wait_until to detect when time is frozen and raise an exception. Similar to: https://github.com/jnicklas/capybara/blob/06c4955e56f7db4ac32105c94e9d844f53aac3f2/lib/capybara/node/base.rb#L91

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions