...positioning, width/heigth, or similar. Every browser has its own caveats and you can not test them all. Generally speaking: Use the html tag to define your page's default background...
...committed fix that is not yet in the stable repository. You can enable the testing sources (natty-proposed) and update your packages to get the fix. You will also receive...
...lots of other code in testing, so hold on to something. This can be avoided by restricting it to the compiz package (I did not test this). Warning: Your system...
yarn add rails-erb-loader Add this to your config/webpacker/environment.js: environment.loaders.prepend('erb', { test: /\.erb$/, enforce: 'pre', use: [{ loader: 'rails-erb-loader', }] }) Start using erb. For example, in a...
...you could open a new tab via window.open when using execute_script in Selenium tests. It no longer works in Chrome (will show a "popup blocked" notification). This is because...
So I checked the /var/lib/dpkg/info/varnish.postrm for exit 78 and found the following: [...] if test -e /var/lib/varnish; then rm -r /var/lib/varnish > /dev/null 2>&1 || exit 78 fi [...] This directory couldn...
If you open a pop-up window [1] in your Selenium tests and you want to close it, you can do this: # Find our target window handle = page.driver.find_window("My...
In RSpec 2 shared_examples_for can have parameters. You can simply hand over arguments from it_behaves...
FactoryBot.define do factory :parent do transient do child_name nil child_allowed_to_drive false end child do association(:child...
...account, users will get a BCrypt::Errors::InvalidHash when trying to sign in. Your tests will not notice this, since they create new users for each scenario.
...If you want to open XLSX spreadsheets (for example to confirm your output in tests), you can use roo. To easily dump Rails records to XLSX, there is also axlsx...
If a controller action responds to other formats than HTML (XML, PDF, Excel, JSON, ...), you can reach that code in...
If you get an error like this for a puppet mount: $ > puppet agent --test Info: Retrieving pluginfacts Info: Retrieving plugin Info: Loading facts Info: Caching catalog for example.makandra.de Info: Applying...
...I had to choose "proceed without pairing" and enter the PIN "0000" Select & test the headphones in System Settings > Sound. Choose High Fidelity Playback (A2DP Sink).
If you are using VNC to run Selenium tests, it may be hard to see what's going on since by default there is no list of open windows and...
...I have not used Colcade yet, but it looks very promising. It has no tests, though. I'd also love to see a migration guide for users coming from Masonry...
...Opera 11.00, and possibly other browsers.) Caches the results of its two feature tests in jQuery.fn.placeholder.input and jQuery.fn.placeholder.textarea. For example, if @placeholder is natively supported for input elements, jQuery.fn.placeholder.input will...
You should test the callback methods and its correct invocation in two separate tests. Understand the ActiveRecord note before you move on with this note. Say this is your Spaceship...
...docked => :en_route end before_transition :on => :launch, :do => :release_docking_clamps end end Testing that a state_machine callback is called at the correct point in a record's...
Augsburg Berlin Beta Group """ The step ignores all HTML tags and only tests on plain text...
...see Cucumber: Check if a select field contains a disabled option on how to test this...
Let's say you have two factories that share some attributes and traits: FactoryBot.define do factory :user do screen_name...
When you need to find out in which kind of spec you are during run-time, it's definitely possible...
Generally, Selenium tests use the browser to interact with the page. If it's unavailable, a timeout error is thrown. Now, consider a scenario like this: @javascript Scenario: Receive...
Errors happening on the target page are not "visible" to the test If the browser is still waiting for further responses from the server (like after following...
If you need dummy data to play around with in development, it's often faster to reuse your existing factories...
Also see the list of IRB commands. Switching the context Changes the "default receiver" of expressions. Can be used to...