|
|
@ -31,7 +31,10 @@ export class ChildList extends BasePage { |
|
|
|
const childCards = await childList.count(); |
|
|
|
const childCards = await childList.count(); |
|
|
|
await expect(childCards).toEqual(cardCount); |
|
|
|
await expect(childCards).toEqual(cardCount); |
|
|
|
for (let i = 0; i < cardCount; i++) { |
|
|
|
for (let i = 0; i < cardCount; i++) { |
|
|
|
await expect(await childList.nth(i).textContent()).toContain(cardTitle[i]); |
|
|
|
await childList.nth(i).locator('.name').waitFor({ state: 'visible' }); |
|
|
|
|
|
|
|
await childList.nth(i).locator('.name').scrollIntoViewIfNeeded(); |
|
|
|
|
|
|
|
await this.rootPage.waitForTimeout(100); |
|
|
|
|
|
|
|
await expect(await childList.nth(i).locator('.name').textContent()).toContain(cardTitle[i]); |
|
|
|
// icon: unlink
|
|
|
|
// icon: unlink
|
|
|
|
// icon: delete
|
|
|
|
// icon: delete
|
|
|
|
await expect( |
|
|
|
await expect( |
|
|
|