...

/

Solution: Testing the UI Workflow with WebdriverIO

Solution: Testing the UI Workflow with WebdriverIO

Review the solution to writing a test to complete the flow from sign-up to logout.

We'll cover the following...

Challenge solution

Let's review the code for the challenge exercise:

const randUserName = () => {
  const chars = 'abcdefghijklmnopqrstuvwxyz0123456789'
  let result = ''
  for (let i = 0; i < 8; i++) {
    result += chars[Math.floor(Math.random() * chars.length)]
  }
  return result
}

export default randUserName
The login application

Let's explain the code above:

  • In ...

Access this course and 1400+ top-rated courses and projects.