Skip to content

Instantly share code, notes, and snippets.

@ptrthomas
Last active August 12, 2021 09:53
Show Gist options
  • Save ptrthomas/ac04f3501f608534f588d4e539b804c5 to your computer and use it in GitHub Desktop.
Save ptrthomas/ac04f3501f608534f588d4e539b804c5 to your computer and use it in GitHub Desktop.
Karate vs Taiko
Feature: customer manager
Background:
* driver 'http://localhost:3000'
Scenario:
* match driver.title == 'Angular TypeScript JumpStart App'
* click('{}Login')
* rightOf('{}Email:').input('admin@customermanager.com')
* rightOf('{}Password:').input('password1234')
* click('{button}Login')
* waitFor('{}Logout')
* below('{}Filter:').input('ted')
* waitForResultCount('{}View Orders', 1)
* click('{}New Customer')
* below('{}First Name').input('first name')
* below('{}Last Name').input('last name')
* below('{}Address').input('address')
* below('{}City').input('city')
* below('{}State').select(0)
* click('{}Insert')
* click('{a}3')
* waitFor('{a}First name Last name').click()
* waitFor('{^}Edit Customer').retry().click().delay(100)
* waitFor('{}First Name').below().input('updated')
* waitForEnabled('{}Update').click()
* waitFor('{^}Customer Details').click()
* waitFor('{^}First nameupdated Last name')
* click('{}Customer Manager')
* near('{}Ted James').find('{a}View Orders').click()
* waitFor('{}Basketball')
* waitFor('{}Shoes')
* waitFor('{}$207.98')