powerful-orange-86819
04/15/2022, 7:35 AMadamant-magazine-53646
04/17/2022, 1:59 AMlemon-toothbrush-55306
04/18/2022, 4:10 PMWallet
and as you know you need to take your Seed Phrase
in my case based in 24 words
then save it and in the next screen write the correct words in the ramdom inputs that will appear (sometimes will appear 2,3,4 or 5...) and must mach the position with the value obviously here I will leave some screenshots... Okey.. so...
In the first screen where I need to save every single word I'm doing like this... idk If is the best way....
Since I have a name
unique for each one... I do this for each word so I repeat this process 23 times
chanching [name="1"]
... etc.
js
cy.get('[data-test-id="seedPhrase-show"]')
.get('[name="0"]')
.find('b')
.then(($value0) => {
const valueText0 = $value0.text()
cy.wrap(valueText0).as('wrapValue0')
})
Now I have every single value saved and we go to the second screenshot where I need to introduce in the Ramdom Input
the value depending on the [name=""]
, so for example in this case I would need to access to [name="0"]
which must be family
to [name="9"]
which must be morning
...etc , then write in each one the correct word (I remember I will have stored from before in wraps).
I could access to the name of every Input with this code.... but doesn't return to me the name value, just 4
or 5
depending on the ramdom.
js
cy.get('[data-test-id="seedPhrase-confirm"]')
.get('input')
.get('[name]')
.then(($valueInputs) => {
const valueInputs = $valueInputs.append()
})
How can I finish this? I'm stuck.gray-kilobyte-89541
04/18/2022, 4:38 PMlemon-toothbrush-55306
04/18/2022, 4:38 PMgray-kilobyte-89541
04/18/2022, 4:46 PMlemon-toothbrush-55306
04/18/2022, 4:46 PMlemon-toothbrush-55306
04/18/2022, 4:47 PMlemon-toothbrush-55306
04/18/2022, 5:48 PMlemon-toothbrush-55306
04/18/2022, 5:49 PMjs
cy.get('[data-test-id="seedPhrase-confirm"]')
.get('input')
.get('[name]')
.then(($valueInputs) => {
const valueInputs = $valueInputs.text()
})
lemon-toothbrush-55306
04/18/2022, 7:07 PMgray-kilobyte-89541
04/18/2022, 7:17 PMlemon-toothbrush-55306
04/18/2022, 7:20 PMlemon-toothbrush-55306
04/18/2022, 7:20 PMlemon-toothbrush-55306
04/18/2022, 7:21 PMId's or name's
doesn't matter which one since both are uniques, from every Input, but... until I don't get the id's I won't know which one is the ID, since the ID will change in every iteration.gray-kilobyte-89541
04/18/2022, 7:47 PMlemon-toothbrush-55306
04/18/2022, 8:42 PMgray-kilobyte-89541
04/18/2022, 11:20 PMlemon-toothbrush-55306
04/19/2022, 10:04 AMjs
// Añadimos un nuevo contacto
cy.contains('Nuevo contacto').click()
cy.get('[data-test-id="address-book-new-contact"]')
cy.get('[name="accountId"]').type('0.0.30918660')
cy.get('[name="accountName"]').type('CypressTest')
cy.get('[name="accountNote"]').type('Testing a bit')
cy.get('[name="accountMemo"]').type('Here is the memo')
cy.contains('Guardar').click()
cy.get('[aria-label=Editar]').click()
// Comprobamos valores correctos
cy.get('[data-test-id="address-book-new-contact"]')
cy.get('[name="accountId"]').should('contain', '0.0.30918660')
cy.get('[name="accountName"]').should('contain', 'CypressTest')
cy.get('[name="accountNote"]').should('contain', 'Testing a bit')
cy.get('[name="accountMemo"]').should('contain', 'Here is the memo')
lemon-toothbrush-55306
04/19/2022, 10:07 AMfresh-doctor-14925
04/19/2022, 10:16 AMhave.value
, so :
cy.get('[name="accountId"]').should('have.value', '0.0.30918660')
lemon-toothbrush-55306
04/19/2022, 10:26 AMgorgeous-farmer-37128
04/20/2022, 10:53 AMCypress does not support running Firefox version 78. To use Firefox with Cypress, install a version of Firefox newer than or equal to 86.
currently using cypress: 9.5.3
- as a last resort i could downgrade to cypress < 8.0.0 :/glamorous-architect-52545
04/20/2022, 4:40 PMglamorous-architect-52545
04/20/2022, 4:40 PMglamorous-architect-52545
04/20/2022, 4:41 PMmagnificent-finland-58048
04/21/2022, 1:47 PMadorable-smartphone-87280
04/21/2022, 2:31 PM0
to see if that fixes it.colossal-car-14055
04/21/2022, 9:14 PMgreat-london-82425
04/22/2022, 4:38 PM