2014-11-21 20:56:13 +00:00
|
|
|
@en.wikipedia.beta.wmflabs.org @firefox @internet_explorer_10 @login @safari @test2.wikipedia.org
|
2014-07-28 22:03:39 +00:00
|
|
|
Feature: VisualEditor Cite
|
|
|
|
|
|
|
|
Background:
|
|
|
|
Given I go to the "Cite VisualEditor Test" page with content "Cite VisualEditor Test"
|
2014-10-21 19:02:06 +00:00
|
|
|
And I click in the editable part
|
|
|
|
And I click the Cite button
|
|
|
|
And I can see the Cite User Interface
|
2014-07-28 22:03:39 +00:00
|
|
|
|
|
|
|
Scenario: Website
|
|
|
|
When I click Website
|
|
|
|
And I fill in the first textarea with "http://en.wikipedia.org/"
|
|
|
|
And I fill in the second textarea with "Website Source title"
|
|
|
|
And I fill in the third textarea with "Website Source date 28 July 2014"
|
|
|
|
And I fill in the fourth textarea with "28 July 2014"
|
|
|
|
And I fill in the fifth textarea with "Website title"
|
2014-09-04 16:33:26 +00:00
|
|
|
And I fill in the sixth textarea with "Website publisher"
|
|
|
|
And I fill in the seventh textarea with "Website Last name"
|
|
|
|
And I fill in the eighth textarea with "Website First name"
|
2014-07-28 22:03:39 +00:00
|
|
|
And the Website input field titles are in the correct order
|
|
|
|
And I click Add more information
|
|
|
|
And I see Show more fields
|
|
|
|
And I type in a field name "New website field"
|
2014-08-29 17:06:49 +00:00
|
|
|
And I click the new field label
|
2014-07-28 22:03:39 +00:00
|
|
|
And I fill in the new field "New website field contents"
|
|
|
|
And I click Insert Citation
|
|
|
|
And I click Save page
|
2014-11-03 18:57:34 +00:00
|
|
|
And I click Review your changes
|
2014-07-28 22:03:39 +00:00
|
|
|
Then diff view should show the Website citation added
|
|
|
|
|
|
|
|
Scenario: Book
|
|
|
|
When I click Book
|
|
|
|
And I fill in the first textarea with "Book title"
|
|
|
|
And I fill in the second textarea with "Book author last name"
|
|
|
|
And I fill in the third textarea with "Book author first name"
|
|
|
|
And I fill in the fourth textarea with "Book publisher"
|
|
|
|
And I fill in the fifth textarea with "2014"
|
|
|
|
And I fill in the sixth textarea with "9780743273565"
|
|
|
|
And I fill in the seventh textarea with "Location of publication"
|
|
|
|
And I fill in the eighth textarea with "123"
|
|
|
|
And the Book input field titles are in the correct order
|
2014-11-19 21:53:08 +00:00
|
|
|
And I click Add more information
|
2014-07-28 22:03:39 +00:00
|
|
|
And I type in a field name "New book field"
|
2014-08-29 17:06:49 +00:00
|
|
|
And I click the new field label
|
2014-07-28 22:03:39 +00:00
|
|
|
And I fill in the new field "New book field contents"
|
|
|
|
And I click Insert Citation
|
|
|
|
And I click Save page
|
2014-11-03 18:57:34 +00:00
|
|
|
And I click Review your changes
|
2014-08-20 21:03:56 +00:00
|
|
|
Then diff view should show the Book citation added
|
|
|
|
|
|
|
|
Scenario: News
|
|
|
|
When I click News
|
2014-10-21 19:02:06 +00:00
|
|
|
And I fill in the first textarea with "News URL"
|
|
|
|
And I fill in the second textarea with "News Source title"
|
|
|
|
And I fill in the third textarea with "News Last name"
|
|
|
|
And I fill in the fourth textarea with "News First name"
|
|
|
|
And I fill in the fifth textarea with "News Source date"
|
|
|
|
And I fill in the sixth textarea with "News Work"
|
|
|
|
And I fill in the seventh textarea with "News URL access date"
|
|
|
|
And the News input field titles are in the correct order
|
|
|
|
And I click Insert Citation
|
|
|
|
And I click Save page
|
2014-11-03 18:57:34 +00:00
|
|
|
And I click Review your changes
|
2014-08-20 21:03:56 +00:00
|
|
|
Then diff view should show the News citation added
|
|
|
|
|
|
|
|
Scenario: Journal
|
|
|
|
When I click Journal
|
2014-10-21 19:02:06 +00:00
|
|
|
And I fill in the first textarea with "Journal title"
|
|
|
|
And I fill in the second textarea with "Journal Source date"
|
2015-01-13 22:13:52 +00:00
|
|
|
And I fill in the third textarea with "Journal Last Name"
|
|
|
|
And I fill in the fourth textarea with "Journal First Name"
|
|
|
|
And I fill in the fifth textarea with "Journal Source Date"
|
|
|
|
And I fill in the sixth textarea with "Journal Journal"
|
|
|
|
And I fill in the seventh textarea with "Journal Access Date"
|
|
|
|
And I fill in the eighth textarea with "Journal DOI"
|
2014-10-21 19:02:06 +00:00
|
|
|
And the Journal input field titles are in the correct order
|
|
|
|
And I click Insert Citation
|
|
|
|
And I click Save page
|
2014-11-03 18:57:34 +00:00
|
|
|
And I click Review your changes
|
2014-10-21 19:02:06 +00:00
|
|
|
Then diff view should show the Journal citation added
|
|
|
|
|
|
|
|
Scenario: Basic
|
|
|
|
When I click Basic
|
2014-10-21 21:03:56 +00:00
|
|
|
Then I should see the VisualEditor interface
|
|
|
|
And I should see the Options use this group text
|
2015-01-13 22:28:16 +00:00
|
|
|
And I should see the General references
|
2015-02-06 03:09:38 +00:00
|
|
|
#And I fill in General references
|
2015-01-13 22:28:16 +00:00
|
|
|
|
|
|
|
Scenario: Error message for required field not present
|
|
|
|
When I click Journal
|
|
|
|
And I fill in the first textarea with "Journal title"
|
|
|
|
And I click Insert Citation
|
|
|
|
Then I should see a Required parameters missing error
|
|
|
|
And I should see a Go back button
|
2015-01-14 16:14:42 +00:00
|
|
|
And I should see a Continue anyway button
|