-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CP-3181 [Help Section] Example of no results in search bar of Help Se…
…ction (#2131) Co-authored-by: Milena Niebrzydowska <[email protected]>
- Loading branch information
1 parent
25f3149
commit 061b32b
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
34 changes: 34 additions & 0 deletions
34
apps/mudita-center-e2e/src/specs/help/help-section-search-noresults.e2e.ts
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,34 @@ | ||
/** | ||
* Copyright (c) Mudita sp. z o.o. All rights reserved. | ||
* For licensing, see https://github.com/mudita/mudita-center/blob/master/LICENSE.md | ||
*/ | ||
|
||
import NavigationTabs from "../../page-objects/tabs.page" | ||
import HelpPage from "../../page-objects/help.page" | ||
import HomePage from "../../page-objects/home.page" | ||
|
||
describe("Check Help search for no results", () => { | ||
before(async () => { | ||
//Click Not Now button | ||
const notNowButton = await HomePage.notNowButton | ||
await notNowButton.waitForDisplayed() | ||
await notNowButton.click() | ||
//Open Help page | ||
const helpTab = await NavigationTabs.helpTab | ||
await helpTab.waitForDisplayed({ timeout: 15000 }) | ||
await helpTab.click() | ||
}) | ||
|
||
it("Search for not existing article and verify no results information", async () => { | ||
//Search for not existing article by entering not findable string (special characters) | ||
const helpSearchInput = await HelpPage.helpSearchInput | ||
await helpSearchInput.setValue("!@#$%^&*()") | ||
|
||
//Verify quick search: no results information | ||
const helpSearchResults = await HelpPage.helpSearchResults | ||
await expect(helpSearchResults).toBeDisplayed() | ||
const iconSearchHelpSearchResults = await HelpPage.iconSearchHelpSearchResults | ||
await expect(iconSearchHelpSearchResults).toBeDisplayed() | ||
await expect(helpSearchResults).toHaveText("We couldn't find any topics...") | ||
}) | ||
}) |
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