module Playwright::Test

def self.expect_timeout

def self.expect_timeout
  @@expect_timeout || 5000 # default timeout is 5000ms
end

def self.expect_timeout=(timeout)

def self.expect_timeout=(timeout)
  @@expect_timeout = timeout
end

def self.with_timeout(expect_timeout, &block)

def self.with_timeout(expect_timeout, &block)
  old_timeout = @@expect_timeout
  @@expect_timeout = expect_timeout
  block.call
ensure
  @@expect_timeout = old_timeout
end