-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8b6c170
commit 0b92e37
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
cypress/e2e/Project_BigFish/UI_Playground/PageObjecModel/Tests/ajax_Test.cy.js
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/// <reference types="Cypress" /> | ||
|
||
import { IndexPage } from "../Pages/index_page" | ||
|
||
var landingpage = new IndexPage () | ||
|
||
describe('Test to wait for an element to show up', () => { | ||
|
||
|
||
it('should click a button, wait 15 seconds for ajax data', () => { | ||
// Visit the page that contains the button | ||
cy.visit('http://www.uitestingplayground.com/') | ||
landingpage.clickAjaxData_Page() | ||
|
||
// Find and click the button | ||
cy.get('#ajaxButton').click(); | ||
|
||
// Wait for 15 seconds | ||
cy.wait(15000); | ||
}) | ||
it('verify new content loaded', () =>{ | ||
// Verify that new content has been loaded on the site | ||
cy.get('#new-content').should('be.visible'); | ||
}) | ||
}); |