Bug #37251
closedadapt foreman_puppet tests to run with remote_webdriver
Description
When executing foreman_puppet integration tests with the remote webdriver https://github.com/theforeman/foreman/pull/9952
I get the following error:
```
test_0005_edit page(Minitest::Result) [/builds/Engineering/orcharhino/dependencies/foreman_puppet/foreman/vendor/ruby/ruby/2.7.0/gems/selenium-webdriver-4.9.0/lib/selenium/webdriver/remote/bridge.rb:411]:
Selenium::WebDriver::Error::WebDriverError: You are trying to work with something that isn't a file.
foreman_puppet/test/integration/foreman_puppet/smartclass_parameter_js_test.rb:77:in `block in <class:SmartclassParameterJSTest>'
```
In this file https://github.com/theforeman/foreman_puppet/blob/master/test/integration/foreman_puppet/smartclass_parameter_js_test.rb#L77
```
fill_in 'puppetclass_lookup_key_description', with: 'test'
```
Is looking for a file called test
AFAIK there are to possibilities to fix this:
1. Disable the file detector for this test
```
page.driver.browser.file_detector = nil if page.driver.browser.respond_to?(:file_detector=)
```
2. Change fill_in to something that isn't a file
```
fill_in 'puppetclass_lookup_key_description', with: 'asdf'
```
Let me know which one you prefer then I can open a PR
Updated by The Foreman Bot 3 months ago
- Pull request https://github.com/theforeman/foreman_puppet/pull/392 added
Updated by dosas please_edit_me 2 months ago
- Status changed from New to Closed
Applied in changeset foreman_puppet|64b4b5334c9c650ed4736903859923a3ee8b2cae.