Skip to content

Commit

Permalink
Add basic integration test for mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
amrav committed Feb 1, 2018
1 parent f87f56c commit bb7ffb5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/integration/run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -95,4 +95,9 @@ if [[ $CURL_OUTPUT != *"Powered by MediaWiki"* ]]; then
error "Main page failed to load properly: "$CURL_OUTPUT
fi

MOBILE_CURL_OUTPUT=$(curl -sSL $NGINX_ADDR'/index.php?title=Main_Page&mobileaction=toggle_view_mobile')
if [[ $MOBILE_CURL_OUTPUT != *"Special:MobileMenu"* ]]; then
error "Main page failed to load properly on mobile: "$MOBILE_CURL_OUTPUT
fi

info "Tests complete"

0 comments on commit bb7ffb5

Please sign in to comment.