Skip to content

[BUG] Unable to see a detailed error or reason of failaure in console when waiting for element is timeout #9058

@amrsa1

Description

@amrsa1

Context:

  • Playwright Version: 1.15
  • Operating System: linux
  • Node.js version: 14
  • Browser: any

image

Code Snippet

console show error timeout, but not specifying any useful details, like time out for what and for which element, which line...etc

    test.beforeAll(async ({browser}) =>{
        page = await browser.newPage()
        p = new ParentList(page);
        const loginCookie = await API.getCookies('admin', 'pds');
        await page.context().addCookies([{ name: 'PHPSESSID', value: loginCookie, path: '/' ,domain:'dev.d.d'}]);

    });

    test.beforeEach(async () =>{
        await page.goto('/parent/list')
    });

    test('01. Should be able to add new project', async () => {
        await p.waitForElement(p.parentListHeader)   //  I intentionally make it fails here
    });

Describe the bug

Unable to see a detailed info when a test is failing like referring to an element and print a meaningful error that could help in debugging.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions