Skip to content

Commit 1c7b388

Browse files
Update hook name test
1 parent 844127d commit 1c7b388

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test-e2e/tests/hooks/hook-name.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { newTestPage, getHooks, waitForSelector } from "../../test-utils";
22
import { expect } from "chai";
3-
import { clickNestedText } from "pentf/browser_utils";
3+
import { clickNestedText, clickSelector } from "pentf/browser_utils";
44

55
export const description = "Show custom hook name";
66

@@ -10,7 +10,7 @@ export async function run(config: any) {
1010
const hooksPanel = '[data-testid="props-row"]';
1111

1212
// Counter
13-
await clickNestedText(devtools, /Counter$/, {
13+
await clickSelector(devtools, '[data-name="Counter"]', {
1414
retryUntil: async () => {
1515
return !!(await devtools.$('[data-testid="Hooks"]'));
1616
},

0 commit comments

Comments
 (0)