You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Because return myPo.lastName.getValue().then((val) => {expect(val.trim()).toBe('albeit');}); clutters tests, is slower to read, is needed often enough that it is annoying to constantly code.
The text was updated successfully, but these errors were encountered:
Add a function that will return the result of getValue() as a trimmed string.
Example
Why
Because
return myPo.lastName.getValue().then((val) => {expect(val.trim()).toBe('albeit');});
clutters tests, is slower to read, is needed often enough that it is annoying to constantly code.The text was updated successfully, but these errors were encountered: