Message “Async callback was not invoked within the 5000 ms timeout specified by jest.setTimeout”

后端 未结 16 1681
[愿得一人]
[愿得一人] 2020-11-28 02:56

I\'m using Puppeteer and Jest to run some front end tests.

My tests look as follows:

describe("Profile Ta         


        
16条回答
  •  猫巷女王i
    2020-11-28 03:35

    It should call the async/await when it is async from test.

    describe("Profile Tab Exists and Clickable: /settings/user", () => {
        test(`Assert that you can click the profile tab`, async (done) => {
            await page.waitForSelector(PROFILE.TAB);
            await page.click(PROFILE.TAB);
            done();
        }, 30000);
    });
    

提交回复
热议问题