https://bugzilla.wikimedia.org/show_bug.cgi?id=57333

--- Comment #8 from Jeff Hall <[email protected]> ---
Working solution is to drop a copy of the "canned" permissions.sqlite file into
the ../test/browser/features/support directory of the
mediawiki-extensions-MobileFrontend repo, and then inject these lines into
env.rb for the same repo:

permissions_file = "./features/support/permissions.sqlite"
    if RUBY_PLATFORM == 'x86_64-darwin12.5.0'
      firefox_executable = "/Applications/Firefox.app/Contents/MacOS/firefox"
    elsif RUBY_PLATFORM == 'x86_64-linux'
      firefox_executable = '/usr/bin/firefox'
    else
      puts 'Cannot identify local OS, so cannot locate Firefox executable!'
    end
    profile_path = ("/tmp/NearbyProfile/")
    unless File.exist?(profile_path)
      system("mkdir " + profile_path)
    end
    system(firefox_executable + " -CreateProfile 'NearbyProfile " +
profile_path + "'")
    system("cp " + permissions_file + " " + profile_path)
    browser = Watir::Browser.new :firefox, :profile => 'NearbyProfile'

This isn't elegant, but it is working!

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to