Artur Beljajev
bf3b54367b
Merge branch 'master' into refactor-devise-integration
2018-08-08 14:13:53 +03:00
Maciej Szlosarczyk
526a9ccd58
Change test structure to follow closer newer Rails 5 rules
...
* Create new class called ApplicationIntegrationTest, so we don't have
to override ActionDispatch::IntegrationTest
* Move UI tests to inherit from ApplicationSystemTestCase
* Existing REST API or EPP tests inherit from
ApplicationIntegrationTest.
* Move `require 'application_system_test_case'` at the end of
`test_helper`
I don't particularly agree with the Rails' convention of treating UI
tests as system tests and API tests as integration tests, but I see no
benefit in actively fighting against it.
2018-07-27 09:36:27 +03:00
Artur Beljajev
c1066f12c6
Fix registrar area authenticated root path
2018-07-19 21:50:03 +03:00
Maciej Szlosarczyk
e6d3895b75
Fix typo in assertions filename
2018-07-19 10:40:42 +03:00
Artur Beljajev
bf33565d0e
Improve readability
2018-07-19 00:40:43 +03:00
Artur Beljajev
e369d90e20
Make UI consistent
2018-07-19 00:23:17 +03:00
Artur Beljajev
5561825584
Use standard Devise sessions controller in admin area
...
Fixes a bug when retrying to login with correct credentials
2018-07-18 20:02:05 +03:00
Artur Beljajev
a2451f4a13
Fix test name
2018-07-18 12:14:24 +03:00
Artur Beljajev
989bb32548
Improve readability
2018-07-16 01:31:36 +03:00
Artur Beljajev
6f0c886236
Add tests
2018-07-16 00:58:22 +03:00
Artur Beljajev
02aad0d781
Add tests
2018-07-15 19:01:43 +03:00
Artur Beljajev
7a054ca893
Fix tests and specs
2018-07-13 23:12:01 +03:00
Artur Beljajev
32ecf36057
Rename users.password
to users.plain_text_password
...
Otherwise it conflicts with Devise
2018-07-13 23:09:21 +03:00
Artur Beljajev
8b7769e19e
Merge branch 'master' into refactor-devise-integration
...
# Conflicts:
# spec/features/registrar/sign_in/mobile_id_spec.rb
2018-07-12 18:59:11 +03:00
Artur Beljajev
e5cdb2e8db
Merge branch 'master' into refactor-devise-integration
...
# Conflicts:
# app/controllers/registrant/contacts_controller.rb
# config/routes.rb
2018-07-10 18:09:03 +03:00
Maciej Szlosarczyk
3acd605b90
Change inheritance structure to match the one from Rails 5 more
...
In the future, ApplicationSystemTestCase should inherit from
ActionDispatch::SystemTestCase and JavaScriptApplicationSystemTestCase
could possibly be removed if the `driven_by` method works as it is
promised in Rails documentation:
http://api.rubyonrails.org/v5.2/classes/ActionDispatch/SystemTestCase.html
Consider introducing another class between
ActionDispatch::IntegrationTest and other items inheriting from it, as
the general Rails practice seems to have `ApplicationIntegrationTest`,
as we do have `ApplicationRecord` and `ApplicationController`.
2018-07-10 17:10:26 +03:00
Maciej Szlosarczyk
0fa30591a8
Add mocked challenge_id to be displayed inside flash message
2018-07-09 16:10:40 +03:00
Maciej Szlosarczyk
2bcedd0fac
Move transactional fixtures to base class
2018-07-09 12:45:48 +03:00
Maciej Szlosarczyk
0e86214d1c
Rewrite test to find the flash message
2018-07-09 10:35:57 +03:00
Maciej Szlosarczyk
e1f77c1d03
Add database cleaner to tests that cannot run in a transaction
2018-07-09 10:16:45 +03:00
Maciej Szlosarczyk
b164a58523
Add new base test class definition
2018-07-09 10:16:44 +03:00
Maciej Szlosarczyk
f327bdf6b6
Rewrite mobile id spec to a test
2018-07-09 10:16:44 +03:00
Maciej Szlosarczyk
6fb1e44cca
Move affected domains to the top of the hash, update integration test
2018-07-05 17:53:03 +03:00
Maciej Szlosarczyk
3e81366cfc
Add affected domain parameter to REST API response
2018-07-05 17:24:32 +03:00
Maciej Szlosarczyk
b5f07682f4
Make replace_nameservers return an array of domain names
2018-07-05 16:15:32 +03:00
Maciej Szlosarczyk
417a390ff7
Add tests for DomainDeleteConfirmJob
2018-06-25 16:14:36 +03:00
Maciej Szlosarczyk
934404036f
Add tests for DomainUpdateConfirmJob
2018-06-25 15:50:07 +03:00
Maciej Szlosarczyk
657affb68d
Add whois record fixture and fix invoices fixture
2018-06-22 13:39:45 +03:00
Timo Võhmar
6c564f925b
Merge pull request #889 from internetee/replace-warden-helpers-with-devise
...
Replace Warden test helpers with Devise ones
2018-06-22 10:51:24 +03:00
Timo Võhmar
81f70c7d64
Merge pull request #873 from internetee/add-uuid-db-columns
...
Add UUID db columns
2018-06-21 15:22:11 +03:00
Artur Beljajev
904975ad2d
Update fixtures
2018-06-20 12:25:09 +03:00
Artur Beljajev
9684c8e59f
Refactor Devise integration
...
- Use scoped users
- Use the named route helpers instead of hardcoded paths
2018-06-20 12:21:22 +03:00
Artur Beljajev
d064dbc11f
Replace Warden test helpers with Devise ones
2018-06-19 19:40:35 +03:00
Maciej Szlosarczyk
7e88a96f27
Add missed travel_back
callback in teardown
2018-06-18 10:34:24 +03:00
Maciej Szlosarczyk
843dc8edcb
Add new links to registrant page layout
2018-06-18 10:30:23 +03:00
Artur Beljajev
5626c87e04
Change contacts.uuid
and domains.uuid
to NOT NULL
2018-06-13 07:27:29 +03:00
Maciej Szlosarczyk
f1294508d1
Improve setup of a locally failing test
2018-06-07 14:46:18 +03:00
Timo Võhmar
157b383738
Merge pull request #780 from internetee/registry-662
...
Enable domain contact replacement
2018-06-06 15:39:24 +03:00
Maciej Szlosarczyk
2965fddef4
Merge branch 'master' into credit-and-debit-card-payments
2018-06-04 11:06:29 +03:00
Artur Beljajev
472038825a
Fix test
...
#662
2018-06-04 03:19:51 +03:00
Artur Beljajev
263cb2e123
Require new contact to be valid
...
#662
2018-06-04 03:06:29 +03:00
Artur Beljajev
8c915164c5
Change naming
...
#662
2018-06-04 02:14:15 +03:00
Artur Beljajev
f5965331c8
Merge branch 'master' into registry-662
2018-05-29 12:11:25 +03:00
Maciej Szlosarczyk
b32809cdac
Deprecate Registrant::WhoisController
2018-05-25 13:58:13 +03:00
Maciej Szlosarczyk
f1808cfcf1
Remove link to WHOIS controller from registrant portal
2018-05-25 13:55:21 +03:00
Timo Võhmar
97ca7198fa
Merge pull request #837 from internetee/registry-795
...
Registry 795
2018-05-23 09:18:56 +03:00
Maciej Szlosarczyk
d7afb3880a
Merge branch 'master' into credit-and-debit-card-payments
2018-04-30 11:38:19 +03:00
Maciej Szlosarczyk
d92004cbe0
Rename Payments to PaymentOrders
2018-04-30 09:30:34 +03:00
Maciej Szlosarczyk
c08561fa0d
Remove information about web-based whois form name fields
2018-04-27 14:26:49 +03:00
Maciej Szlosarczyk
cecb60623c
Remove unecessary teardown block
2018-04-27 10:41:43 +03:00