Skip to content

Kalostrinho/wdio-typescript-poc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Just another POC

Now using a bit of Typescript 😉

How to run

The usual Node project way 🔥

  1. Run npm install
  2. After all dependencies get installed successfully, run npm run wdio:test
  3. Enjoy the colors!

Test suite

This is an end to end suite that handles the dreaded Google page and its complex locators

Pre-requisite

Executes just once before the test suite starts

  • Loads Google website
Scenario 1

Validates that Google page opened properly

  • The page has a Google logo
  • The page has an I'm feeling lucky button
Scenario 2

Executes a Google search and validates that results are shown

  • Enter cats within the Google search input box
  • Results should be displayed
  • Url now contains /search
Scenario 3

Extra validation that our term cats was the one actually searched for

  • Input box on top contains cats as a value
Scenario 4

Validates that after results are shown, Images and Videos tabs are available

  • The page displays Images tab
  • The page displays Videos tab
Scenario 5

Clicks on the Images tab, clicks on the second result image and validates that there's a Visit button displayed

  • Click on the Images tab
  • Select the second image
  • Validate that the Visit button is displayed
Scenario 6 (forced failure)

Validate that the "hypothetical" Open in new tab button is displayed next to the Visit button This should fail

  • Validate that the Open in new tab button is displayed

About

A cool POC with WebdriverIO (async) and Typescript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published