Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
1 answer
69 views

Why do Active Storage tests hang?

I have installed this gem to validate and test active storage: gem 'active_storage_validations' gem 'shoulda-matchers', '~> 6.0' # app/models/asset.rb class Asset < ApplicationRecord ...
Chiara Ani's user avatar
  • 1,115
0 votes
1 answer
75 views

How to test active storage dimension validation?

I have installed this gem to validate and test active storage: gem 'active_storage_validations' # Asset Model class Asset < ApplicationRecord has_one_attached :portrait validates( :...
Chiara Ani's user avatar
  • 1,115
0 votes
1 answer
34 views

I get "sqs-main.rb:42:in `<module:SqsTest>': undefined method `purge' for SqsTest:Module (NoMethodError)" , in Ruby

My code: require 'aws-sdk' module SqsTest access_key_id = $access_key_id secret_access_key=$secret_access_key session_token = $session_token sqs_client = Aws::SQS::Client.new( ...
QA_V's user avatar
  • 35
0 votes
1 answer
101 views

Disabling mailcatcher commandline messages

When using mailcatcher for testing the sending of mails i use codeception and the codeception-mailcatcher-module. Everything runs as a Github action and i trigger stuff like this: php vendor/bin/...
maidan's user avatar
  • 249
0 votes
2 answers
110 views

How to run all examples except one in Ruby using Rspec

config.before(:example,) do visit '/' find('a[class=btn').click fill_in 'username', with: $email fill_in 'password', with: $password find('input[class=btn]').click end I want to log ...
Lucas Benicio's user avatar
0 votes
1 answer
616 views

How to download file directly from blob URL?

I am looking to download a PDF directly from a blob URL using Ruby code. The URL appears like this: blob:https://dev.myapp.com/ba853441-d1f7-4595-9227-1b0e445b188b I am able to visit the link in a web ...
Phil's user avatar
  • 926
0 votes
0 answers
87 views

Read data from excel columns with Ruby and Capybara

I'm having a logic problem to read the information of each excel column. Each information i need is in separate columns totaling 58 columns. each information in this is compared with a field on the ...
RobertBosch Bosh's user avatar
0 votes
2 answers
29 views

Ruby capybara autotests. It is not possible to click on certain button due that they all have same css

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 scary /div[contains(@class,'one-employee__user')]/...
Sviat's user avatar
  • 23
0 votes
3 answers
72 views

How to check multiples itens of an array?

everyone, I'm trying to check an information from every item of an array but I don't know how to do this for all the 4 items, first that's the standard response: data: [{"optinId": "...
Jaime Junior's user avatar
0 votes
1 answer
80 views

Problem with monitor resolution in Capybara object identification

When I run on a 15″ monitor, capybara is not able to click on a specific menu item, but when I run on a 29″ monitor, the test works perfectly. How to adjust this in a way that the test runs regardless ...
Elis's user avatar
  • 89
0 votes
2 answers
104 views

Delete records Oracle before tests from Ruby, capybara and Cucumber. Please

does anyone have an example of how to remove the records from the table before starting or after finishing the tests? My tests are working perfectly fine and all that remains is to automatically ...
Staulik's user avatar
  • 89
0 votes
1 answer
108 views

Is it possible to test spam clicking submit button using Capybara in Rails?

I'm working on a large repo, and we have a bug that causes multiple accounts to be created when the form's submit button is spam clicked. Is there any way to automate spam clicking using Capybara? I'...
Mysterious Shadow's user avatar
0 votes
1 answer
113 views

Terminal execution shows .rb steps before .feature scenario steps

Description of Problem I am having a "problem" while creating Cucumber automation with Ruby. My terminal is showing the .rb steps before the .feature scenario steps, which is really annoying ...
Ricardo Martins's user avatar
0 votes
0 answers
147 views

I can not to run feature.file from Rubymine

Can someone tell me where is my mistake?. I'm trying to run the feature from Run but I haven't had success. If I run via terminal it is possible. I've tried several ways but still succeeding. :\...
Tadeu's user avatar
  • 67
0 votes
0 answers
38 views

Understanding the Framework of Automation with Ruby and Cucumber

Can someone explain or send me some material so I can understand the meaning of each directory in this structure? specs = I understand step_definitions = I understand support\env = ...
Tadeu's user avatar
  • 67

15 30 50 per page
1
2 3 4 5
16