Merge pull request #4083 from consul/disable_buttons
Don't disable button to download emails
This commit is contained in:
@@ -38,4 +38,11 @@ describe "Admin download user emails" do
|
||||
expect(file_contents).to match_array ["admin_news1@consul.dev", "admin_news2@consul.dev"]
|
||||
end
|
||||
end
|
||||
|
||||
scenario "Download button is not disabled after being clicked", :js do
|
||||
visit admin_emails_download_index_path
|
||||
click_button "Download emails list"
|
||||
|
||||
expect(page).to have_button "Download emails list", disabled: false
|
||||
end
|
||||
end
|
||||
|
||||
@@ -360,11 +360,9 @@ describe "Commenting debates" do
|
||||
fill_in "Leave your comment", with: "Testing submit button!"
|
||||
click_button "Publish comment"
|
||||
|
||||
# The button"s text should now be "..."
|
||||
# This should be checked before the Ajax request is finished
|
||||
expect(page).not_to have_button "Publish comment"
|
||||
|
||||
expect(page).to have_content("Testing submit button!")
|
||||
expect(page).to have_button "Publish comment", disabled: true
|
||||
expect(page).to have_content "Testing submit button!"
|
||||
expect(page).to have_button "Publish comment", disabled: false
|
||||
end
|
||||
|
||||
describe "Moderators" do
|
||||
|
||||
@@ -377,11 +377,9 @@ describe "Commenting legislation questions" do
|
||||
fill_in "Leave your comment", with: "Testing submit button!"
|
||||
click_button "Publish comment"
|
||||
|
||||
# The button's text should now be "..."
|
||||
# This should be checked before the Ajax request is finished
|
||||
expect(page).not_to have_button "Publish comment"
|
||||
|
||||
expect(page).to have_content("Testing submit button!")
|
||||
expect(page).to have_button "Publish comment", disabled: true
|
||||
expect(page).to have_content "Testing submit button!"
|
||||
expect(page).to have_button "Publish comment", disabled: false
|
||||
end
|
||||
|
||||
describe "Moderators" do
|
||||
|
||||
@@ -339,11 +339,9 @@ describe "Commenting legislation questions" do
|
||||
fill_in "Leave your answer", with: "Testing submit button!"
|
||||
click_button "Publish answer"
|
||||
|
||||
# The button's text should now be "..."
|
||||
# This should be checked before the Ajax request is finished
|
||||
expect(page).not_to have_button "Publish answer"
|
||||
|
||||
expect(page).to have_content("Testing submit button!")
|
||||
expect(page).to have_button "Publish answer", disabled: true
|
||||
expect(page).to have_content "Testing submit button!"
|
||||
expect(page).to have_button "Publish answer", disabled: false
|
||||
end
|
||||
|
||||
describe "Moderators" do
|
||||
|
||||
Reference in New Issue
Block a user