Skip to content

Commit 15894af

Browse files
twometresteveSteve Kirkland
andauthored
Run e2e tests with Ruby 4 (#2666)
* Set Content Type header * Use latest MR image --------- Co-authored-by: Steve Kirkland <steve.kirkland@smartbear.com>
1 parent 5e30fcf commit 15894af

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

dockerfiles/Dockerfile.browser

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ RUN find . -name package.json -type f -mindepth 2 -maxdepth 3 ! -path "./node_mo
5555
RUN rm -fr **/*/node_modules/
5656

5757
# The maze-runner browser tests (W3C protocol)
58-
FROM 855461928731.dkr.ecr.us-west-1.amazonaws.com/maze-runner-releases:v10.10.1-cli AS browser-maze-runner
58+
FROM 855461928731.dkr.ecr.us-west-1.amazonaws.com/maze-runner-releases:latest-v10-cli AS browser-maze-runner
5959

6060
COPY --from=browser-feature-builder /app/test/browser /app/test/browser/
6161
WORKDIR /app/test/browser

dockerfiles/Dockerfile.node

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ RUN npm pack --verbose packages/plugin-restify/
2222
RUN npm pack --verbose packages/plugin-hono/
2323

2424
# The maze-runner node tests
25-
FROM 855461928731.dkr.ecr.us-west-1.amazonaws.com/maze-runner-releases:v10.10.1-cli AS node-maze-runner
25+
FROM 855461928731.dkr.ecr.us-west-1.amazonaws.com/maze-runner-releases:latest-v10-cli AS node-maze-runner
2626
WORKDIR /app/
2727
COPY packages/node/ .
2828
COPY test/node/features test/node/features

test/node/features/steps/server_fixture_request_steps.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
# @step_input reqbody [String] urlencoded data to send.
66
# @step_input url [String] The URL to post data to.
77
When("I POST the data {string} to the URL {string}") do |reqbody, url|
8-
Net::HTTP.post(URI(url), reqbody)
8+
Net::HTTP.post(URI(url),
9+
reqbody,
10+
'Content-Type' => 'application/x-www-form-urlencoded')
911
end
1012

1113
When('I open the URL {string} tolerating any error') do |url|

0 commit comments

Comments
 (0)