Closed ivaylo321 closed 9 months ago
I do not think that is available by default, but you can always wrap things up as per your need like this example, func assertErrorToNilf
https://github.com/playwright-community/playwright-go/blob/main/examples/download/main.go
@ivaylo321 you can do this:
expect := playwright.NewPlaywrightAssertions(5000)
err := expect.Locator(page.GetByTestId("status")).ToHaveText("Submitted")
Hello,
In Javascript I can use syntax like this:
expect(page.getByTestId('status')).toHaveText('Submitted');
Is there something similar I can do in Go, instead of
I am basically asking if there is a way to use the
expect
keyword in Go?