For context, I have a controller method called delete_cars. Inside of the method, I call destroy_all on an ActiveRecord::Collection of Cars. Below the ...
For context, I have a controller method called delete_cars. Inside of the method, I call destroy_all on an ActiveRecord::Collection of Cars. Below the ...
I have an instant search-as-you-type implemented with Turbo and a Stimulus controller, as outlined in this post. Relevant JavaScript, in app/javascrip ...
I have a big problem: with all invalid Login messages appearing in a single field, I can validate it by doing this: I'm going to map the only element ...
I'm trying to get .png or .jpg image screenshots after test failing. Unfortunately it saves only .html file. Rails 7.0.4 Ruby 3.2.0. gem 'cucumber' ...
I have a pretty simple user scaffold pages and some tests on them. In 10% probability (I'm also inclined to speculate that this might be due to the ...
I want to log in to the website in all tests except one, how do i do that? I tried this: I was expecting all test run except the one with the ta ...
Rails 7.0.4 Rspec 3.11.0 Capybara 3.37.1 selenium-webdriver (gem) 4.5.0 with Ruby-debug (gem 'debug', platforms: %i[ mri mingw x64_mingw ]) in Gem ...
I have a simple web test scenario with Capybara running webrick and poltergeist, but it is driving me mad: let(:person) { create(:person) } scena ...
I'm running a pretty simple test, which requires javascript, just to check the index loads and an element is there, something like: My config for c ...
The solution below solves my problem when there is a vertical column that validates the record in the cell with the field on the application screen. ...
Whether there is a list 'li' and all have the same classes. How to check Sensitivity of Mezzo Unit Tamper field and Mid value? enter image description ...
In my Rails 7 app I've got Capybara test which checks if downloading a PDF file works. The issue is that after a successful check, Capybara saves this ...
(New to testautomation) Hopefully someone can help me out. I need to be able to check the dropdown has a specific amount of values (in my case 7 diffe ...
Page has multiple buttons. I need to click first one, but they all have same class one-employee__remove-btn I could try xpath, but this kinda looks s ...
describe 'Visit script' do it 'visitar a pagina' do end ...
In my page, I have a link like this: <input value="" data-autofocus="true" class="form-control" type="text" name="user[login]" id="user_lo ...
I've found some outdated statistics here: In Selenium Webdriver which is better in terms of performance Linktext or css? I'd be curious whether any ...
This is my delete link: This is the system test using Minitest / Capybara / Selenium / Rails 7: When I run the test I get ActionController::Rout ...
I am trying to follow the answers that I found elsewhere but for some reason, while there aren't any basic code errors, the following test fails anywa ...
I'm working on an interface where the user creates an entity and gives it a name via a simple JS alert prompt, and by design our back-end returns a 42 ...