TC Change separators for type number
From SeleniumSMW_AUT
This test case tests the function MU Change separators for type number and is dedicated to Types.
Contents |
Story
setUp
- create a new page "Property:AnyNewNumber"
- edit this page
[[Has type::Number]]
- create a new page "Property:AnyOtherNumber"
- edit this page
[[Has type::Number]]
- create a new page "TestAnyNewNumber1" and enter the following:
[[AnyNewNumber::445000]] [[AnyOtherNumber::123,456.78| ]] __SHOWFACTBOX__
- check that text "445,000" is present (factbox)
- check that text "123,456.78" is present (factbox)
tests
- 01_changesep
- go to MediaWiki:smw_kiloseparator and edit separator to "."
- go to MediaWiki:smw_decseparator and edit separator to ","
- 02_checkvalues
- go to "TestAnyNewNumber1"
- check that "445.000" is present (factbox)
- check that text "123,456 .78" is present (factbox) --> blank char has been added!
tearDown
- delete "Property:AnyNewNumber"
- delete "TestAnyNewNumber1"
- go to MediaWiki:smw_kiloseparator and edit separator back to ","
- go to MediaWiki:smw_decseparator and edit separator back to "."
- move to MainPage
Further information
This test case was exported to php files on 2011-07-04.
This test case has three prerequisites: TC Create property page, TC Define type of property and TC Show factbox
Facts about TC Change separators for type numberRDF feed