From 10720fa4f9e26b3feec1a90468f4ecc726a99c05 Mon Sep 17 00:00:00 2001 From: John Chilton Date: Fri, 16 Dec 2016 12:50:09 -0500 Subject: [PATCH] Fixup and test core.history.yaml tour. --- config/plugins/tours/core.history.yaml | 8 ++++---- test/selenium_tests/test_stock_tours.py | 6 ++++++ 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/config/plugins/tours/core.history.yaml b/config/plugins/tours/core.history.yaml index 5e0e28f59f6..3a0e84059f6 100644 --- a/config/plugins/tours/core.history.yaml +++ b/config/plugins/tours/core.history.yaml @@ -91,12 +91,12 @@ steps: postclick: - "#current-history-panel > ul.list-items > div:nth-child(1) > div.primary-actions > a.icon-btn.delete-btn" - - element: "#current-history-panel > div.controls > div.subtitle > a" + - element: "#current-history-panel > .controls > .subtitle .toggle-deleted-link" title: "Include all deleted datasets" intro: "By default your history will hide all deleted datasets from you. You can visualize them by toggling this button." position: "bottom" postclick: - - "#current-history-panel > div.controls > div.subtitle > a" + - "#current-history-panel > .controls > .subtitle .toggle-deleted-link" - element: "#current-history-panel > ul.list-items > div:nth-child(1) > div.warnings > div > a" title: "Undeleting a dataset" @@ -107,12 +107,12 @@ steps: postclick: - "#current-history-panel > ul.list-items > div:nth-child(1) > div.warnings > div > a" - - element: "#current-history-panel > div.controls > div.subtitle > a" + - element: "#current-history-panel > div.controls > .subtitle .toggle-deleted-link" title: "Hiding all deleted datasets" intro: "Hiding datasets that were previously deleted works in the same way." position: "bottom" preclick: - - "#current-history-panel > div.controls > div.subtitle > a" + - "#current-history-panel > div.controls > .subtitle .toggle-deleted-link" - element: "#current-history-panel > div.controls > div.title > div" title: "Change your History name" diff --git a/test/selenium_tests/test_stock_tours.py b/test/selenium_tests/test_stock_tours.py index 8c5bf2011bc..d39d16e3f59 100644 --- a/test/selenium_tests/test_stock_tours.py +++ b/test/selenium_tests/test_stock_tours.py @@ -26,3 +26,9 @@ class TestStockToursTestCase(SeleniumTestCase): self.run_tour( os.path.join(STOCK_TOURS_DIRECTORY, "core.scratchbook.yaml"), ) + + @selenium_test + def test_core_history(self): + self.run_tour( + os.path.join(STOCK_TOURS_DIRECTORY, "core.history.yaml"), + )