From 81ee97ba54befd8d5212b47188f3e5c46d17b33e Mon Sep 17 00:00:00 2001 From: Cmcmahon Date: Wed, 11 Jun 2014 16:23:54 -0700 Subject: [PATCH] [BrowserTest] remove experimental cursor test This never did work properly, it was kept around as a toy Change-Id: I1787b274cdd9297e906f9076b7d4135f7a29782b --- .../test/browser/features/cursor.feature | 34 ----------------- .../features/step_definitions/cursor_steps.rb | 38 ------------------- .../support/pages/cursor_test_page.rb | 13 ------- 3 files changed, 85 deletions(-) delete mode 100644 modules/ve-mw/test/browser/features/cursor.feature delete mode 100644 modules/ve-mw/test/browser/features/step_definitions/cursor_steps.rb delete mode 100644 modules/ve-mw/test/browser/features/support/pages/cursor_test_page.rb diff --git a/modules/ve-mw/test/browser/features/cursor.feature b/modules/ve-mw/test/browser/features/cursor.feature deleted file mode 100644 index 72b4eef546..0000000000 --- a/modules/ve-mw/test/browser/features/cursor.feature +++ /dev/null @@ -1,34 +0,0 @@ -@chrome @firefox @login -Feature: VisualEditor cursor - - Background: - Given I am at the cursor test page - And I click Edit for VisualEditor - -Scenario Outline: show hover icons - When I send right arrow times - And I do not see the hover icon - And I send right arrow times 1 - Then I should see the hover icon - And I do not see the hover icon - And I do not see the hover icon - And I send right arrow times 1 - And I do not see the hover icon -Examples: - | arrow_just_before | not_on_page | visible | first_wrong | second_wrong | again_not_on_page | - | 14 | References | References | Transclusion | Link | References | - | 42 | Transclusion | Transclusion | References | Link | Transclusion | - | 73 | Transclusion | Transclusion | References | Link | Transclusion | - -# The last line of this scenario is different from the Outline above. -# Links text should be navigable and show the hover icon - -Scenario: Cursor over link shows link icons - When I send right arrow times 74 - And I do not see the Link hover icon - And I send right arrow times 1 - Then I should see the Link hover icon - And I do not see the References hover icon - And I do not see the Transclusion hover icon - And I send right arrow times 1 - And I should see the Link hover icon diff --git a/modules/ve-mw/test/browser/features/step_definitions/cursor_steps.rb b/modules/ve-mw/test/browser/features/step_definitions/cursor_steps.rb deleted file mode 100644 index b6234434f6..0000000000 --- a/modules/ve-mw/test/browser/features/step_definitions/cursor_steps.rb +++ /dev/null @@ -1,38 +0,0 @@ -Given(/^I am at the cursor test page$/) do - visit(CursorTestPage) -end - -When(/^I send right arrow times (\d+)$/) do |number| - on(VisualEditorPage) do |page| - page.content_element.when_present(10).fire_event("onfocus") - number.to_i.times do - page.content_element.send_keys :arrow_right - page.content_element.fire_event("onblur") #gerrit 86800/86801 - end - end -end - -When(/^I do not see the References hover icon$/) do - on(CursorTestPage).references_hover_element.should_not be_visible -end - -Then(/^I should see the References hover icon$/) do - on(CursorTestPage).references_hover_element.when_present.should be_visible -end - -Then(/^I should see the Transclusion hover icon$/) do - on(CursorTestPage).transclusion_hover_element.when_present.should be_visible -end - -Then(/^I do not see the Transclusion hover icon$/) do - on(CursorTestPage).transclusion_hover_element.should_not be_visible -end - -Then(/^I do not see the Link hover icon$/) do - on(CursorTestPage).link_hover_element.should_not be_visible -end - -Then(/^I should see the Link hover icon$/) do - on(CursorTestPage).link_hover_element.should be_visible -end - diff --git a/modules/ve-mw/test/browser/features/support/pages/cursor_test_page.rb b/modules/ve-mw/test/browser/features/support/pages/cursor_test_page.rb deleted file mode 100644 index 38f657e2b7..0000000000 --- a/modules/ve-mw/test/browser/features/support/pages/cursor_test_page.rb +++ /dev/null @@ -1,13 +0,0 @@ -class CursorTestPage - include PageObject - - include URL - page_url URL.url("User:Selenium_user/cursor_test_page") -# contents of this page must contain EXACTLY the wikitext string: -# Reference one this is ref1 invisible transclusion here{{Template sandbox notice}} and visible transclusion here{{User:Selenium_user/cursor}}[http://www.google.com This is link to google]{{reflist}} - - span(:references_hover, class: "oo-ui-iconedElement-icon oo-ui-icon-reference", index: 1) - span(:transclusion_hover, class: "oo-ui-iconedElement-icon oo-ui-icon-template", index: 1) - span(:link_hover, class: "oo-ui-iconedElement-icon oo-ui-icon-link", index: 1) - -end