Make project reply test match studio reply test

This commit is contained in:
BryceLTaylor 2021-10-29 16:18:55 -04:00
parent bf9b14633f
commit b5dc993689

View file

@ -262,8 +262,8 @@ describe('comment tests', async () => {
test('project: reply to comment', async () => {
await driver.get(projectUrl);
let commentXpath = `//span[contains(text(), "${projectComment}")]`;
let replyXpath = commentXpath + '/../following-sibling::div/span[@class = "comment-reply"]';
let commentXpath = `//span[contains(text(), "${projectComment}")]/../..`;
let replyXpath = commentXpath + '//span[@class = "comment-reply"]';
await clickXpath(replyXpath);
// type reply