From d4ea62a834bd48186d6f2c9f9b6287aa867e0785 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Klinkovsk=C3=BD?= Date: Wed, 24 Feb 2016 23:15:13 +0100 Subject: [PATCH] hints: add xfailed tests for hinting inside iframes --- tests/integration/data/hints/iframe.html | 11 ++++++++++ .../integration/data/hints/iframe_scroll.html | 11 ++++++++++ tests/integration/features/hints.feature | 21 +++++++++++++++++++ 3 files changed, 43 insertions(+) create mode 100644 tests/integration/data/hints/iframe.html create mode 100644 tests/integration/data/hints/iframe_scroll.html diff --git a/tests/integration/data/hints/iframe.html b/tests/integration/data/hints/iframe.html new file mode 100644 index 000000000..269b689a2 --- /dev/null +++ b/tests/integration/data/hints/iframe.html @@ -0,0 +1,11 @@ + + + + + + Hinting inside an iframe + + + + + diff --git a/tests/integration/data/hints/iframe_scroll.html b/tests/integration/data/hints/iframe_scroll.html new file mode 100644 index 000000000..4c3f56453 --- /dev/null +++ b/tests/integration/data/hints/iframe_scroll.html @@ -0,0 +1,11 @@ + + + + + + Scrolling inside an iframe + + + + + diff --git a/tests/integration/features/hints.feature b/tests/integration/features/hints.feature index f15858d76..13346aa37 100644 --- a/tests/integration/features/hints.feature +++ b/tests/integration/features/hints.feature @@ -9,3 +9,24 @@ Feature: Using hints And I run :hint links normal And I run :follow-hint xyz Then the error "No hint xyz!" should be shown + + ### iframes + + @xfail + Scenario: Using :follow-hint inside an iframe + When I open data/hints/iframe.html + And I run :hint all normal + And I run :follow-hint a + And I run :hint links normal + And I run :follow-hint a + Then data/hello.txt should be loaded + + @xfail + Scenario: Using :follow-hint inside a scrolled iframe + When I open data/hints/iframe_scroll.html + And I run :hint all normal + And I run :follow-hint a + And I run :scroll bottom + And I run :hint links normal + And I run :follow-hint a + Then data/hello2.txt should be loaded