This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe('medium search', () => { | |
it('should successfully find my profile', () => { | |
cy.visit('https://medium.com/search'); | |
/** | |
* the functional chains used to: | |
* select search input, type values, press enter, and assert the first test | |
*/ | |
cy | |
.get('form [type="Search"]') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* eslint-env jest */ | |
/* eslint-disable padded-blocks, no-unused-expressions, no-unused-vars */ | |
/** | |
* here we import the selenium module | |
*/ | |
const webDriver = require('selenium-webdriver'); | |
/** | |
* these are the main functionalities of webdriver | |
* By allows us to find elements |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* here we import the selenium module | |
*/ | |
const webDriver = require('selenium-webdriver'); | |
/** | |
* these are the main functionalities of webdriver | |
* By allows us to find elements | |
* Key allows us to simulate keyboard keys | |
* until helps us to wait until a certain criteria is met (for example element is visible) |