2 # This file is subject to the license terms in the LICENSE file found in the
3 # qa-browsertests top-level directory and at
4 # https://git.wikimedia.org/blob/qa%2Fbrowsertests/HEAD/LICENSE. No part of
5 # qa-browsertests, including this file, may be copied, modified, propagated, or
6 # distributed except according to the terms contained in the LICENSE file.
8 # Copyright 2012-2014 by the Mediawiki developers. See the CREDITS file in the
9 # qa-browsertests top-level directory and at
10 # https://git.wikimedia.org/blob/qa%2Fbrowsertests/HEAD/CREDITS
12 Given(/^I am at file that does not exist$/) do
13 visit(FileDoesNotExistPage, using_params: {page_name: @random_string})
16 Then(/^page should show that no such file exists$/) do
17 on(FileDoesNotExistPage).file_does_not_exist_message_element.should be_visible