From 7c8b788b6e540d96a1fa8d0ae5c5b8b83706e8ae Mon Sep 17 00:00:00 2001 From: AndiAJ Date: Wed, 1 Nov 2023 16:00:51 +0200 Subject: [PATCH] Bug 1862926 - New high priority history UI test --- .../org/mozilla/fenix/ui/AddToHomeScreenTest.kt | 0 .../java/org/mozilla/fenix/ui/HistoryTest.kt | 14 ++++++++++++++ 2 files changed, 14 insertions(+) delete mode 100644 fenix/app/src/androidTest/java/org/mozilla/fenix/ui/AddToHomeScreenTest.kt diff --git a/fenix/app/src/androidTest/java/org/mozilla/fenix/ui/AddToHomeScreenTest.kt b/fenix/app/src/androidTest/java/org/mozilla/fenix/ui/AddToHomeScreenTest.kt deleted file mode 100644 index e69de29bb2d1..000000000000 diff --git a/fenix/app/src/androidTest/java/org/mozilla/fenix/ui/HistoryTest.kt b/fenix/app/src/androidTest/java/org/mozilla/fenix/ui/HistoryTest.kt index 8ec79a6fb4db..ec76f441985b 100644 --- a/fenix/app/src/androidTest/java/org/mozilla/fenix/ui/HistoryTest.kt +++ b/fenix/app/src/androidTest/java/org/mozilla/fenix/ui/HistoryTest.kt @@ -466,4 +466,18 @@ class HistoryTest { verifyEmptyHistoryView() } } + + // TestRail link: https://testrail.stage.mozaws.net/index.php?/cases/view/243287 + @Test + fun openHistoryItemTest() { + val defaultWebPage = TestAssetHelper.getGenericAsset(mockWebServer, 1) + + navigationToolbar { + }.enterURLAndEnterToBrowser(defaultWebPage.url) { + }.openThreeDotMenu { + }.openHistory { + }.openWebsite(defaultWebPage.url) { + verifyUrl(defaultWebPage.url.toString()) + } + } }