Playwrightãããã¯ãã®ãã±ã¼ã¿ã¼ã®å ãã¿ã¨ãªã£ã¦ããTesting Libraryã§ã¯ãDOMãæå®ããæ¹æ³ã¨ã㦠data-testid å±æ§ãæ±ã£ãã¯ã¨ãªã¼ãæä¾ãã¦ãã¾ããã©ã¡ãã§ã getByTestId(IDæåå) ã¡ã½ããã使ãããã®å±æ§å¤ã使ã£ãè¦ç´ ã®åå¾ãè¡ãã¾ããããããããã¥ã¡ã³ããè¦ãã¨ãPlaywrightãTesting Libraryãããä»ã®ææ³ã使ããªãã¨ãã®æçµæ段ãã¨ãã¦ãã¾ãã In the spirit of the guiding principles, it is recommended to use this only after the other queries donât work for your use case. Using data-testid attributes do not resemble how your
{{#tags}}- {{label}}
{{/tags}}