We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 946a966 commit 0d09390Copy full SHA for 0d09390
spec/e2e/selenium_spec.rb
@@ -128,6 +128,29 @@
128
end
129
130
131
+ describe 'rewrite rules' do
132
+
133
+ let(:uri) { URI.parse url_for('1.html') }
134
135
+ before do
136
+ proxy.rewrite(%r{1\.html}, '2.html')
137
+ end
138
139
+ it 'fetches the rewritten url' do
140
+ driver.get uri
141
142
+ wait.until { driver.title == '2' }
143
144
145
+ it 'can be cleared' do
146
+ proxy.clear_rewrites
147
148
149
+ wait.until { driver.title == '1' }
150
151
152
153
154
it 'should set timeouts' do
155
proxy.timeouts(read: 0.001)
156
driver.get url_for('slow')
0 commit comments