mirror of
https://github.com/zulip/zulip.git
synced 2025-11-11 01:16:19 +00:00
This needs to be deployed to both staging and prod at the same off-peak time (and the schema migration run). At the time it is deployed, we need to make a few changes directly in the database: (1) UPDATE django_content_type set app_label='zerver' where app_label='zephyr'; (2) UPDATE south_migrationhistory set app_name='zerver' where app_name='zephyr'; (imported from commit eb3fd719571740189514ef0b884738cb30df1320)
18 lines
627 B
CoffeeScript
18 lines
627 B
CoffeeScript
casper = require("casper").create
|
|
logLevel: "debug"
|
|
|
|
casper.start "http://www.google.fr/", ->
|
|
@test.assertTitle "Google", "google homepage title is the one expected"
|
|
@test.assertExists 'form[action="/search"]', "main form is found"
|
|
@fill 'form[action="/search"]', q: "foo", true
|
|
|
|
casper.then ->
|
|
@test.assertTitle "foo - Recherche Google", "google title is ok"
|
|
@test.assertUrlMatch /q=foo/, "search term has been submitted"
|
|
@test.assertEval (->
|
|
__utils__.findAll("h3.r").length >= 10
|
|
), "google search for \"foo\" retrieves 10 or more results"
|
|
|
|
casper.run ->
|
|
@test.renderResults true
|