Skip to content

Commit de5ae1b

Browse files
committed
fix test
1 parent af0128e commit de5ae1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

__tests__/web.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ test.describe('Testing screenplay-playwright-js web module', () => {
150150
await expect(await actor.attemptsTo(Get.element('h3'))).toHaveCount(1);
151151
await expect((await actor.attemptsTo(Get.elements('h3'))).length).toBe(1);
152152
// test for deprecated function inside BrowseTheWeb
153-
await expect(((await BrowseTheWeb.as(actor).getElement((page) => page.getByRole('alert'), false) as Locator[])).length).toBe(1);
153+
await expect(((await BrowseTheWeb.as(actor).getElement((page) => page.getByRole('heading'), false) as Locator[])).length).toBe(1);
154154
});
155155

156156
test('Count', async ({ actor }) => {

0 commit comments

Comments
 (0)