mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2025-03-14 15:09:59 -04:00
Check text of curator invite in studio integration test
This commit is contained in:
parent
4d1a010ee6
commit
f67fcdc495
1 changed files with 4 additions and 3 deletions
|
@ -106,9 +106,10 @@ describe('studio management', () => {
|
|||
let inviteBox = await findByXpath('//div[@class="studio-adder-row"]/input');
|
||||
await inviteBox.sendKeys(username3);
|
||||
await clickXpath('//div[@class="studio-adder-row"]/button');
|
||||
let inviteSuccess = await findByXpath('//div[@class="alert-msg"]'); // the confirm alert
|
||||
let inviteSuccessVisible = await inviteSuccess.isDisplayed();
|
||||
await expect(inviteSuccessVisible).toBe(true);
|
||||
let inviteAlert = await findByXpath('//div[@class="alert-msg"]'); // the confirm alert
|
||||
let alertText = await inviteAlert.getText();
|
||||
let successText = `Curator invite sent to "${username3}"`;
|
||||
await expect(alertText).toMatch(successText);
|
||||
});
|
||||
|
||||
test('accept curator invite', async () => {
|
||||
|
|
Loading…
Reference in a new issue