mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 22:35:41 +00:00
[BrowserTest] update Cite test for new Journal fields
Maintenance Change-Id: I36d0c8b438e8fa1847c3947ad52e15d2aadbcfb6
This commit is contained in:
parent
c878a3e7e9
commit
7b9cf21dec
|
@ -67,6 +67,12 @@ Feature: VisualEditor Cite
|
|||
When I click Journal
|
||||
And I fill in the first textarea with "Journal title"
|
||||
And I fill in the second textarea with "Journal Source date"
|
||||
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"
|
||||
And the Journal input field titles are in the correct order
|
||||
And I click Insert Citation
|
||||
And I click Save page
|
||||
|
|
|
@ -96,7 +96,7 @@ Then(/^diff view should show the Journal citation added$/) do
|
|||
page.wait_until(10) do
|
||||
page.diff_view.include? 'Cite VisualEditor Test'
|
||||
end
|
||||
expect(page.diff_view).to match '<ref>{{Cite journal|title = Journal title|date = Journal Source date}}</ref>Cite VisualEditor Test'
|
||||
expect(page.diff_view).to match '<ref>{{Cite journal|url = Journal title|title = Journal Source date|last = Journal Last Name|first = Journal First Name|date = Journal Source Date|journal = Journal Journal|accessdate = Journal Access Date|doi = Journal DOI}}</ref>Cite VisualEditor Test'
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue