-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
57 additions
and
40 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,47 @@ | ||
import { test } from '../../tests/fixtures'; | ||
|
||
test(`Collections basic display - use collection page layout`, async ({ | ||
collectionPage, | ||
}) => { | ||
await test.step(`Check if collection thumbnail, summary and action bar appears`, async () => { | ||
await collectionPage.validatePageHeaderElements(); | ||
}); | ||
// test(`Collections basic display - use collection page layout`, async ({ | ||
// collectionPage, | ||
// }) => { | ||
// await test.step(`Check if collection thumbnail, summary and action bar appears`, async () => { | ||
// await collectionPage.validatePageHeaderElements(); | ||
// }); | ||
|
||
await test.step(`Check if Collection | About | Forum tabs are displayed`, async () => { | ||
await collectionPage.validateCollectionPageTabs(); | ||
}); | ||
}); | ||
// await test.step(`Check if Collection | About | Forum tabs are displayed`, async () => { | ||
// await collectionPage.validateCollectionPageTabs(); | ||
// }); | ||
// }); | ||
|
||
test(`Collections page - "More..." link to About tab appears below description`, async ({ | ||
page, | ||
collectionPage, | ||
}) => { | ||
await test.step(`Go to "ytjdradio" collection page`, async () => { | ||
await page.goto('/details/ytjdradio'); | ||
}); | ||
// test(`Collections page - "More..." link to About tab appears below description`, async ({ | ||
// page, | ||
// collectionPage, | ||
// }) => { | ||
// await test.step(`Go to "ytjdradio" collection page`, async () => { | ||
// await page.goto('/details/ytjdradio'); | ||
// }); | ||
|
||
await test.step(`Click the "More..." link and check if About page is displayed`, async () => { | ||
await collectionPage.clickMoreBtnFromSummary(); | ||
await collectionPage.validateAboutTabPage(); | ||
}); | ||
}); | ||
// await test.step(`Click the "More..." link and check if About page is displayed`, async () => { | ||
// await collectionPage.clickMoreBtnFromSummary(); | ||
// await collectionPage.validateAboutTabPage(); | ||
// }); | ||
// }); | ||
|
||
test(`Tab navigation`, async ({ collectionPage }) => { | ||
await test.step(`Click "About" tab button and check if About page is displayed in "oldtimeradio" collection page`, async () => { | ||
await collectionPage.clickCollectionTab('About'); | ||
await collectionPage.validateAboutTabPage(); | ||
await collectionPage.validateTabPage('About'); | ||
// await collectionPage.validateAboutTabPage(); | ||
}); | ||
|
||
await test.step(`Click "Forum" tab button and check if Forum page is displayed in "oldtimeradio" collection page`, async () => { | ||
await collectionPage.clickCollectionTab('Forum'); | ||
await collectionPage.validateForumTabPage(); | ||
// await collectionPage.validateForumTabPage(); | ||
await collectionPage.validateTabPage('Forum'); | ||
}); | ||
|
||
await test.step(`Click "Collection" tab button and check if Collections page is displayed in "oldtimeradio" collection page`, async () => { | ||
await collectionPage.clickCollectionTab('Collection'); | ||
await collectionPage.validateCollectionTabPage(); | ||
// await collectionPage.validateCollectionTabPage(); | ||
await collectionPage.validateTabPage('Collection'); | ||
}); | ||
}); |
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