We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 844127d commit 1c7b388Copy full SHA for 1c7b388
test-e2e/tests/hooks/hook-name.test.ts
@@ -1,6 +1,6 @@
1
import { newTestPage, getHooks, waitForSelector } from "../../test-utils";
2
import { expect } from "chai";
3
-import { clickNestedText } from "pentf/browser_utils";
+import { clickNestedText, clickSelector } from "pentf/browser_utils";
4
5
export const description = "Show custom hook name";
6
@@ -10,7 +10,7 @@ export async function run(config: any) {
10
const hooksPanel = '[data-testid="props-row"]';
11
12
// Counter
13
- await clickNestedText(devtools, /Counter$/, {
+ await clickSelector(devtools, '[data-name="Counter"]', {
14
retryUntil: async () => {
15
return !!(await devtools.$('[data-testid="Hooks"]'));
16
},
0 commit comments