mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Math
synced 2024-12-04 20:18:35 +00:00
0cebe64840
The simple math test failed to find the edit link on a non existent page. It was looking for the text 'Create source' from Vector which is now simply 'Create'. Change the PageObject selector to use a CSS selector, more robust to text changes. Change-Id: Ifcbd07da8e343b5697fcff6af6ffac90ff4d6420
24 lines
1.1 KiB
Gherkin
24 lines
1.1 KiB
Gherkin
#
|
|
# This file is subject to the license terms in the LICENSE file found in the
|
|
# qa-browsertests top-level directory and at
|
|
# https://git.wikimedia.org/blob/qa%2Fbrowsertests/HEAD/LICENSE. No part of
|
|
# qa-browsertests, including this file, may be copied, modified, propagated, or
|
|
# distributed except according to the terms contained in the LICENSE file.
|
|
#
|
|
# Copyright 2012-2014 by the Mediawiki developers. See the CREDITS file in the
|
|
# qa-browsertests top-level directory and at
|
|
# https://git.wikimedia.org/blob/qa%2Fbrowsertests/HEAD/CREDITS
|
|
#
|
|
@chrome @en.wikipedia.beta.wmflabs.org @firefox @internet_explorer_6 @internet_explorer_7 @internet_explorer_8 @internet_explorer_9 @internet_explorer_10 @login @phantomjs @test2.wikipedia.org
|
|
Feature: Math
|
|
|
|
Scenario: Display simple math
|
|
Given I am logged in
|
|
And I am at page that does not exist
|
|
When I click link Create
|
|
And I type <math>3 + 2</math>
|
|
And I click Preview
|
|
Then the page should contain an img tag
|
|
And alt for that img should be 3 + 2
|
|
And src for that img should come from //upload
|