Skip to content

Commit

Permalink
piro e2e test graph validation
Browse files Browse the repository at this point in the history
  • Loading branch information
rajimtri committed Jan 3, 2024
1 parent 11a0354 commit 5087463
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 27 deletions.
2 changes: 1 addition & 1 deletion e2etests/cypress.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ module.exports = defineConfig({

e2e: {

baseUrl: 'https://google.co.in/',
baseUrl: 'https://piro.matr.io/',
ModifyObstructiveThirdPartyCode: true,
SkipDomainInjection: [ '*.matr.io'],

Expand Down
9 changes: 8 additions & 1 deletion e2etests/cypress/e2e/graphPiro.feature
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,11 @@ Feature: Validation of Graph in PIRO

Scenario: Validation of Graph in PIRO web on selecting input params

Given I open the piro website
Given I login the piro website

When I enter value of Target Compound mp-id

And I click on run button

Then the graph should be loaded

51 changes: 36 additions & 15 deletions e2etests/cypress/e2e/graphPiro/graphPiro.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
});
10 changes: 0 additions & 10 deletions e2etests/cypress/support/e2e.js

This file was deleted.

0 comments on commit 5087463

Please sign in to comment.