|
94 | 94 | all_pqs(16, "visible")
|
95 | 95 | end
|
96 | 96 |
|
97 |
| - # Disabling internal deadline filter tests as it is broken |
98 |
| - xit "7) by Internal Deadline (From: 20 days ago)." do |
| 97 | + it "7) by Internal Deadline (From: 20 days ago)." do |
99 | 98 | test_date("#internal-deadline", "deadline-from", Time.zone.today - 20)
|
100 | 99 | test_date("#date-for-answer", "answer-to", Time.zone.today)
|
101 | 100 | find("h1").click
|
|
106 | 105 | all_pqs(16, "visible")
|
107 | 106 | end
|
108 | 107 |
|
109 |
| - xit "8) by Internal Deadline (From: 7 days ago)." do |
| 108 | + it "8) by Internal Deadline (From: 7 days ago)." do |
110 | 109 | test_date("#internal-deadline", "deadline-from", Time.zone.today - 7)
|
111 | 110 | test_date("#date-for-answer", "answer-to", Time.zone.today)
|
| 111 | + sleep 0.5 |
112 | 112 | find("h1").click
|
113 |
| - within("#count") { expect(page.text).to eq("6 parliamentary questions out of 16") } |
| 113 | + within("#count") { expect(page.text).to eq("6 parliamentary questions out of 16.") } |
114 | 114 | within(".questions-list") do
|
115 | 115 | find("li#pq-frame-6").visible?
|
116 | 116 | find("li#pq-frame-5").visible?
|
|
124 | 124 | all_pqs(16, "visible")
|
125 | 125 | end
|
126 | 126 |
|
127 |
| - xit "9) by Internal Deadline (From: 20 days time)." do |
| 127 | + it "9) by Internal Deadline (From: 20 days time)." do |
128 | 128 | test_date("#internal-deadline", "deadline-from", Time.zone.today + 20)
|
129 | 129 | test_date("#date-for-answer", "answer-to", Time.zone.today + 20)
|
| 130 | + sleep 0.5 |
130 | 131 | find("h1").click
|
131 | 132 | within("#count") { expect(page.text).to eq("0 parliamentary questions out of 16.") }
|
132 | 133 | all_pqs(16, "hidden")
|
|
135 | 136 | all_pqs(16, "visible")
|
136 | 137 | end
|
137 | 138 |
|
138 |
| - xit "10) by Internal Deadline (To: 20 days ago)." do |
| 139 | + it "10) by Internal Deadline (To: 20 days ago)." do |
139 | 140 | test_date("#internal-deadline", "deadline-from", Time.zone.today + 20)
|
140 | 141 | test_date("#internal-deadline", "deadline-to", Time.zone.today - 20)
|
| 142 | + sleep 0.5 |
141 | 143 | find("h1").click
|
142 | 144 | within("#count") { expect(page.text).to eq("0 parliamentary questions out of 16.") }
|
143 | 145 | all_pqs(16, "hidden")
|
|
146 | 148 | all_pqs(16, "visible")
|
147 | 149 | end
|
148 | 150 |
|
149 |
| - xit "11) by Internal Deadline (To: 7 days ago)." do |
150 |
| - test_date("#internal-deadline", "deadline-from", Time.zone.today + 20) |
| 151 | + it "11) by Internal Deadline (To: 7 days ago)." do |
| 152 | + test_date("#internal-deadline", "deadline-from", Time.zone.today - 20) |
151 | 153 | test_date("#internal-deadline", "deadline-to", Time.zone.today - 7)
|
| 154 | + sleep 0.5 |
152 | 155 | find("h1").click
|
153 | 156 | within("#count") { expect(page.text).to eq("11 parliamentary questions out of 16.") }
|
154 | 157 | within(".questions-list") do
|
|
169 | 172 | all_pqs(16, "visible")
|
170 | 173 | end
|
171 | 174 |
|
172 |
| - xit "12) by Internal Deadline (To: 10 days time)." do |
173 |
| - test_date("#internal-deadline", "deadline-from", Time.zone.today) |
| 175 | + it "12) by Internal Deadline (To: 10 days time)." do |
| 176 | + test_date("#internal-deadline", "deadline-from", Time.zone.today - 20) |
174 | 177 | test_date("#internal-deadline", "deadline-to", Time.zone.today + 10)
|
| 178 | + sleep 0.5 |
175 | 179 | find("h1").click
|
176 | 180 | within("#count") { expect(page.text).to eq("16 parliamentary questions out of 16.") }
|
177 | 181 | all_pqs(16, "visible")
|
|
0 commit comments