-
Notifications
You must be signed in to change notification settings - Fork 9
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
Showing
4 changed files
with
45 additions
and
27 deletions.
There are no files selected for viewing
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
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
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 |
---|---|---|
|
@@ -9,21 +9,42 @@ const newleFilesPath = "cypress/fixtures/newLe.text" | |
|
||
const sometext=''; | ||
|
||
Given('I open the piro website', () => { | ||
|
||
//cy.visit('https://oxi.matr.io/'); | ||
//cy.visit('https://www.google.co.in/'); | ||
//cy.visit(baseUrl) | ||
cy.visit(Cypress.config().baseUrl),{ | ||
Headers:{ | ||
"Accept":"application/json, text/plain, */*", | ||
"User-Agent": "axios/0.18.0" | ||
} | ||
} | ||
cy.screenshot() // Replace with your website URL | ||
cy.log('NAVIGATING TO PIRO WEB') | ||
cy.wait(10000) | ||
|
||
Given('I login the piro website', () => { | ||
|
||
cy.visit(Cypress.config().baseUrl) | ||
cy.log('NAVIGATING TO PIRO WEB') | ||
cy.wait(10000) | ||
|
||
cy.get(".login_login__19CNz") | ||
.should('be.visible') | ||
.click() | ||
|
||
cy.get("#signInFormUsername") | ||
.type('[email protected]',{force: true}) | ||
|
||
cy.get("#signInFormPassword") | ||
.type('PiroTest1234!',{force : true}) | ||
|
||
cy.get('[name="signInSubmitButton"]').eq(1) | ||
.click() | ||
|
||
}); | ||
|
||
|
||
When('I enter value of Target Compound mp-id', () => { | ||
cy.get('[name="target_entry_id"]').type('mp-9029') | ||
|
||
}); | ||
|
||
|
||
And('I click on run button', () => { | ||
cy.get('[type="submit"]').click() | ||
}); | ||
|
||
|
||
Then('the graph should be loaded', () => { | ||
cy.wait(10000); | ||
cy.scrollTo('bottom') | ||
cy.get('.js-plotly-plot').scrollIntoView() | ||
cy.screenshot | ||
}); |
This file was deleted.
Oops, something went wrong.