Merge pull request #3329 from consul/admin-ui

[Backport] Improve UX on admin section
This commit is contained in:
Alberto
2019-02-26 19:13:01 +01:00
committed by GitHub
13 changed files with 60 additions and 58 deletions

View File

@@ -1,6 +1,6 @@
require "rails_helper"
feature "Admin legislation processes" do
feature "Admin collaborative legislation" do
background do
admin = create(:administrator)
@@ -28,7 +28,7 @@ feature "Admin legislation processes" do
context "Index" do
scenario "Displaying legislation processes" do
scenario "Displaying collaborative legislation" do
process_1 = create(:legislation_process, title: "Process open")
process_2 = create(:legislation_process, title: "Process for the future",
start_date: Date.current + 5.days)

View File

@@ -1,6 +1,6 @@
require "rails_helper"
feature "Admin legislation processes" do
feature "Admin collaborative legislation" do
background do
admin = create(:administrator)

View File

@@ -18,7 +18,7 @@ feature "Admin booths assignments" do
visit booth_assignments_admin_polls_path
expect(page).to have_content(poll.name)
expect(page).to have_link(poll.name, href: manage_admin_poll_booth_assignments_path(poll))
expect(page).to have_content(second_poll.name)
within("#poll_#{second_poll.id}") do