diff --git a/test/integration/selenium-helpers.js b/test/integration/selenium-helpers.js index e3bfcde88..fe680daf1 100644 --- a/test/integration/selenium-helpers.js +++ b/test/integration/selenium-helpers.js @@ -159,7 +159,6 @@ class SeleniumHelper { await driver.sleep(500); await this.clickXpath('//button[contains(@class, "button") and ' + 'contains(@class, "submit-button") and contains(@class, "white")]'); - // await this.findByXpath('//span[contains(@class, "profile-name")]'); } urlMatches (regex) { diff --git a/test/integration/studios-page.test.js b/test/integration/studios-page.test.js index 2cdd304c8..6e3ff8ad7 100644 --- a/test/integration/studios-page.test.js +++ b/test/integration/studios-page.test.js @@ -85,7 +85,7 @@ describe('studio management', () => { await clickXpath('//form[@id="new_studio"]/button[@type="submit"]'); await findByXpath('//div[@class="studio-tabs"]'); promoteStudioURL = await driver.getCurrentUrl(); - curatorTab = await promoteStudioURL + 'curators'; + curatorTab = promoteStudioURL + 'curators'; }); beforeEach(async () => { @@ -134,11 +134,10 @@ describe('studio management', () => { // promote user3 let user3href = '/users/' + username3; // click kebab menu on the user tile - let kebabMenuXpath = '//a[@href = "' + user3href + '"]/' + + let kebabMenuXpath = `//a[@href = "${user3href}"]/` + 'following-sibling::div[@class="overflow-menu-container"]'; await clickXpath(kebabMenuXpath + '/button[@class="overflow-menu-trigger"]'); // click promote - // await clickXpath(kebabMenuXpath + '/ul/li/button[@class="promote-button"]'); // await clickXpath('//button[@class="promote-menu-button"]'); //<-- I think this will do it await clickXpath(kebabMenuXpath + '/ul/li/button/span[contains(text(), "Promote")]/..'); await findByXpath('//div[@class="promote-content"]');