mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2025-02-17 00:21:20 -05:00
Make project reply test match studio reply test
This commit is contained in:
parent
bf9b14633f
commit
b5dc993689
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue