Commit f67fcdc4 authored by BryceLTaylor's avatar BryceLTaylor

Check text of curator invite in studio integration test

parent 4d1a010e
...@@ -106,9 +106,10 @@ describe('studio management', () => { ...@@ -106,9 +106,10 @@ describe('studio management', () => {
let inviteBox = await findByXpath('//div[@class="studio-adder-row"]/input'); let inviteBox = await findByXpath('//div[@class="studio-adder-row"]/input');
await inviteBox.sendKeys(username3); await inviteBox.sendKeys(username3);
await clickXpath('//div[@class="studio-adder-row"]/button'); await clickXpath('//div[@class="studio-adder-row"]/button');
let inviteSuccess = await findByXpath('//div[@class="alert-msg"]'); // the confirm alert let inviteAlert = await findByXpath('//div[@class="alert-msg"]'); // the confirm alert
let inviteSuccessVisible = await inviteSuccess.isDisplayed(); let alertText = await inviteAlert.getText();
await expect(inviteSuccessVisible).toBe(true); let successText = `Curator invite sent to "${username3}"`;
await expect(alertText).toMatch(successText);
}); });
test('accept curator invite', async () => { test('accept curator invite', async () => {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment