Skip to content

Commit

Permalink
removed the unwanted comments
Browse files Browse the repository at this point in the history
  • Loading branch information
harisilpa.d committed Mar 25, 2024
1 parent 9244b84 commit 449e913
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions web/frontend/cypress/support/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,23 +81,13 @@ Cypress.Commands.add('validateErr', (tc,temperature,comp,depth) => {
})

Cypress.Commands.add('validateAdditionalElementsField', () => {
// cy.get("[id='react-select-2-input']").type("na")
// cy.xpath("//div[@id='react-select-2-listbox']/div").click()
// cy.xpath("//div[@class=' css-1y7rh0y-MultiValueGeneric2']").invoke('text').should('eq','Na')
cy.enterValidElements("na","Na")
cy.enterValidElements("PB","Pb")
cy.enterValidElements("Mn","Mn")
cy.get("[id='react-select-2-input']").type("Mn")
cy.xpath("//div[@class=' css-nhbbvo-NoOptionsMessage2']").invoke('text').should('eq','No options')
cy.get("[id='react-select-2-input']").clear().type("SS")
cy.xpath("//p[@style='color: red;']").invoke('text').should('eq','Not an element')

// cy.get("[id='react-select-2-input']").clear().type("PB")
// cy.xpath("//div[@id='react-select-2-listbox']/div").click()
// cy.xpath("//div[@class=' css-1y7rh0y-MultiValueGeneric2']").invoke('text').should('eq','Pb')



})

Cypress.Commands.add('enterValidElements', (elementName,message) => {
Expand Down

0 comments on commit 449e913

Please sign in to comment.