Merge pull request #2982 from LLK/my-stuff-integration-update

Make Add to studio test in test-my-stuff integration test look in shared projects
This commit is contained in:
Bryce Taylor 2019-05-21 11:57:07 -04:00 committed by GitHub
commit 59ff5968eb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -101,6 +101,7 @@ test('clicking a project title should take you to the project page', t => {
test('Add To button should bring up a list of studios', t => {
clickXpath('//a[contains(@class, "mystuff-icon")]')
.then(() => clickXpath('//div[@id="sidebar"]/ul/li[@data-tab="shared"]'))
.then(() => findByXpath('//div[@data-control="add-to"]'))
.then((element) => element.getText('span'))
.then((text) => t.equal(text, 'Add to', 'there should be an "Add to" button'))