- 
          
- 
                Notifications
    You must be signed in to change notification settings 
- Fork 750
Closed
Description
What are you trying to achieve?
I am trying to check if input element has disabled attribute.
What do you get instead?
I get a val[i].includes is not a function error.
Provide console output if related. Use
--verbosemode for more details.
    I wait for text "Email Address"
    I see attributes on elements "[data-jsf="Email"]", {"disabled":true}
  ✖ FAILED in 33173ms
-- FAILURES:
  1) UpdateInfo - 1q_pd_im_lp
       Update info - 1q_pd_im_lp:
     val[i].includes is not a function
      at /Users/romand/projects/e2eJsAutomation/node_modules/codeceptjs/lib/helper/Playwright.js:2172:32
      at Array.filter (<anonymous>)
      at Playwright.seeAttributesOnElements (node_modules/codeceptjs/lib/helper/Playwright.js:2169:23)Provide test source code if related
    I.waitForText('Email Address');
    I.seeAttributesOnElements(selectors.email, { disabled: true });Details
- CodeceptJS version: v3.5.11
- NodeJS Version: v18.16.0
- Operating System: macOS 14.2.1
My guess is that the problem is in this line of code. Disabled attribute from my test is boolean and equal to true. First operand of OR operator is false, in second we try to call includes method. But boolean doesn't have that method.
CodeceptJS/lib/helper/Playwright.js
Line 2173 in 9a7991b
| if (!val[i] || !val[i].includes(values[i])) return false; | 
Can anyone help me with this?
PS: It is my first issue, please don't judge me :)
