mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-12-12 08:41:31 -05:00
update homepage-rows and my-stuff integrationt ests for new studio page
This commit is contained in:
parent
a0fcf88929
commit
bf91904a33
2 changed files with 4 additions and 4 deletions
|
@ -52,8 +52,8 @@ describe('www-integration project rows', () => {
|
||||||
test('Featured Studios link', async () => {
|
test('Featured Studios link', async () => {
|
||||||
await clickXpath('//div[@class="box"][descendant::text()="Featured Studios"]' +
|
await clickXpath('//div[@class="box"][descendant::text()="Featured Studios"]' +
|
||||||
'//div[contains(@class, "thumbnail")][1]/a[@class="thumbnail-image"]');
|
'//div[contains(@class, "thumbnail")][1]/a[@class="thumbnail-image"]');
|
||||||
let galleryInfo = await findByXpath('//div[contains(@class, "gallery-info")]');
|
let studioInfo = await findByXpath('//div[contains(@class, "studio-info")]');
|
||||||
let galleryInfoDisplayed = await galleryInfo.isDisplayed();
|
let studioInfoDisplayed = await studioInfo.isDisplayed();
|
||||||
await expect(galleryInfoDisplayed).toBe(true);
|
await expect(studioInfoDisplayed).toBe(true);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
@ -92,7 +92,7 @@ describe('www-integration my_stuff', () => {
|
||||||
await clickXpath('//form[@id="new_studio"]/button[@type="submit"]');
|
await clickXpath('//form[@id="new_studio"]/button[@type="submit"]');
|
||||||
await driver.sleep(500);
|
await driver.sleep(500);
|
||||||
// my stuff also has an element with the id tabs
|
// my stuff also has an element with the id tabs
|
||||||
let tabs = await findByXpath('//ul[@id="tabs" and @class="tabs-index box-h-tabs h-tabs"]');
|
let tabs = await findByXpath('//div[@class="studio-tabs"]');
|
||||||
let tabsVisible = await tabs.isDisplayed();
|
let tabsVisible = await tabs.isDisplayed();
|
||||||
expect(tabsVisible).toBe(true);
|
expect(tabsVisible).toBe(true);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue