forked from JeroenDeDauw/Wikibase
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
patch set 2: added a selenium test for that Change-Id: I9181612615ea2c791befe8f00eab7cc6cfe2800a
- Loading branch information
1 parent
cea0078
commit fe5fe26
Showing
4 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Wikidata UI tests | ||
# | ||
# Author:: Tobias Gritschacher (tobias.gritschacher@wikimedia.de) | ||
# License:: GNU GPL v2+ | ||
# | ||
# tests for item: check edit-tab | ||
|
||
require 'spec_helper' | ||
|
||
describe "Check functionality of edit-tab" do | ||
context "Check if edit-tab is hidden when showing an item" do | ||
it "should check that the edit-tab is not shown on the item page" do | ||
visit_page(NewItemPage) | ||
@current_page.create_new_item(generate_random_string(10), generate_random_string(20)) | ||
@current_page.editTab?.should be_false | ||
end | ||
end | ||
end |