fixed tests: updated gems; improve company register status job and test stability

- Refactor CompanyRegisterStatusJob for better readability and error handling
- Update whitelisted_companies to use JSON parsing with fallback
- Fix company register status check in tests with proper mock data
- Remove debug logging statements
- Add null check for domain status notes
- Update test dependencies (Capybara and Selenium) for better stability
This commit is contained in:
oleghasjanov 2024-11-13 15:04:39 +02:00
parent 34e13ffb40
commit 292a4fddc5
6 changed files with 119 additions and 37 deletions

View file

@ -1,11 +1,12 @@
require 'test_helper'
require 'minitest/mock'
class FormHelperTest < ActionView::TestCase
def test_legal_document_field
meth = MiniTest::Mock.new
meth = Minitest::Mock.new
returned_legal_document_field = ApplicationController.helpers.legal_document_field('Hello', meth)
assert returned_legal_document_field.include? 'data-legal-document="true"'
assert returned_legal_document_field.include? 'accept=".pdf,.asice,.asics,.sce,.scs,.adoc,.edoc,.bdoc,.zip,.rar,.gz,.tar,.7z,.odt,.doc,.docx"'
end
end
end