CanSetWebdriverContext.t 375 B

12345678910111213141516
  1. use strict;
  2. use warnings;
  3. use Test::More;
  4. {
  5. package SetWebdriverContext;
  6. use Moo;
  7. with 'Selenium::Remote::Driver::CanSetWebdriverContext';
  8. }
  9. my $prefix = SetWebdriverContext->new;
  10. ok($prefix->can('wd_context_prefix'), 'role grants wd context prefix attr');
  11. is($prefix->wd_context_prefix, '/wd/hub', 'role has proper default webdriver context');
  12. done_testing;