-
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-2747 [E2E][HomePage] More news (#2117)
- Loading branch information
1 parent
e187d81
commit 499a8d8
Showing
4 changed files
with
39 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
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,31 @@ | ||
/** | ||
* 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 HomePage from "../../page-objects/home.page" | ||
import NewsPage from "../../page-objects/news.page" | ||
|
||
describe("Check more news button", () => { | ||
it("Click Not Now and Open Mudita News", async () => { | ||
const notNowButton = await HomePage.notNowButton | ||
await expect(notNowButton).toBeClickable() | ||
await notNowButton.click() | ||
const muditaNewsTab = NavigationTabs.muditaNewsTab | ||
await expect(muditaNewsTab).toBeDisplayed() | ||
}) | ||
|
||
it("Check Mudita News Header, check More News button href", async () => { | ||
const newsHeader = NewsPage.newsHeader | ||
await expect(newsHeader).toBeDisplayed() | ||
await expect(newsHeader).toHaveText("Mudita News") | ||
|
||
const moreNewsButton = await NewsPage.moreNewsButton | ||
await expect(moreNewsButton).toBeDisplayed() | ||
|
||
const moreNewsButtonHref = NewsPage.moreNewsButtonHref | ||
const checkHref = await moreNewsButtonHref.getAttribute("href") | ||
await expect(checkHref).toBe("https://www.mudita.com/#news") | ||
}) | ||
}) |
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