mirror of
https://github.com/internetee/registry.git
synced 2025-07-21 10:16:01 +02:00
parent
d131448228
commit
127bbf5167
2 changed files with 12 additions and 1 deletions
|
@ -50,6 +50,7 @@
|
||||||
|
|
||||||
%span.glyphicon.glyphicon-search
|
%span.glyphicon.glyphicon-search
|
||||||
|
|
||||||
|
= button_tag t('.export_csv_btn'), id: 'export-domains-csv-btn'
|
||||||
%button.btn.btn-default.js-reset-form
|
%button.btn.btn-default.js-reset-form
|
||||||
= t(:clear_fields)
|
= t(:clear_fields)
|
||||||
%hr
|
%hr
|
||||||
|
|
|
@ -2,7 +2,17 @@ require 'rails_helper'
|
||||||
|
|
||||||
RSpec.feature 'CSV Export', db: true do
|
RSpec.feature 'CSV Export', db: true do
|
||||||
scenario 'csv file download' do
|
scenario 'csv file download' do
|
||||||
|
sign_in
|
||||||
visit registrar_domains_path
|
visit registrar_domains_path
|
||||||
click_on 'download-domains-csv-btn'
|
click_on 'export-domains-csv-btn'
|
||||||
|
end
|
||||||
|
|
||||||
|
def sign_in(user: create(:user_with_valid_password))
|
||||||
|
visit registrar_login_path
|
||||||
|
|
||||||
|
fill_in 'depp_user_tag', with: user.email
|
||||||
|
fill_in 'depp_user_password', with: user.password
|
||||||
|
|
||||||
|
click_button 'Login'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue