I have created a simple test via TestCafe which check that Google Home Page has appropriate page title. By page title here I meant title text which is located in <head><title>Google</title></head>
But when I run it locally via using t.debug()
I see that page title shows random auto-generated text instead of a real page title.
Here is my test:
fixture("firstTest")
.page("https://www.google.com")
test("home page should have a title", async t => {
await t.debug()
expect(await t.title).toEqual('Google')
});
Error message is: ReferenceError: expect is not defined
Please share any ideas why this could happen.