How to Check the CSS of an Object by Capybara with jQuery
You can send your code as below. It tries to creates members object and then adds new profiles to members. With this way we can check if metrics of is shown as described format.
In this example we used page.execute_script() but this method is not working for jQuery so we can use page.evaluate_scripts(). In the example below, I resize the window for Amazon.com and check if the navigation bar always fills the page from edge-to-edge. If the page has scroll bar we must subtract the with of the scroll bar, which is 15px, from the window width. Check the script below: