look for guiPlayer on project page in project rows test

This commit is contained in:
BryceLTaylor 2021-05-24 17:08:45 -04:00
parent b4dfbc0ecf
commit 38c2af740e

View file

@ -12,7 +12,7 @@ let rootUrl = process.env.ROOT_URL || 'https://scratch.ly';
if (remote) { if (remote) {
jest.setTimeout(60000); jest.setTimeout(60000);
} else { } else {
jest.setTimeout(10000); jest.setTimeout(20000);
} }
let driver; let driver;
@ -38,9 +38,9 @@ describe('www-integration project rows', () => {
test('Featured Project link', async () => { test('Featured Project link', async () => {
await clickXpath('//div[@class="box"][descendant::text()="Featured Projects"]' + await clickXpath('//div[@class="box"][descendant::text()="Featured Projects"]' +
'//div[contains(@class, "thumbnail")][1]/a[@class="thumbnail-image"]'); '//div[contains(@class, "thumbnail")][1]/a[@class="thumbnail-image"]');
let gfOverlay = await findByXpath('//div[@class="stage-wrapper_stage-wrapper_2bejr box_box_2jjDp"]'); let guiPlayer = await findByXpath('//div[@class="guiPlayer"]');
let gfOverlayDisplayed = await gfOverlay.isDisplayed(); let guiPlayerDisplayed = await guiPlayer.isDisplayed();
await expect(gfOverlayDisplayed).toBe(true); await expect(guiPlayerDisplayed).toBe(true);
}); });
test('Featured Studios row title', async () => { test('Featured Studios row title', async () => {