Skip to content

Commit

Permalink
chore: changing the flow of test cases; starting by creating a new wa…
Browse files Browse the repository at this point in the history
…llet rather than importing
  • Loading branch information
rabi-siddique committed Mar 6, 2024
1 parent d49d84e commit 4665470
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions tests/e2e/specs/keplr/keplr-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,18 @@

describe('Keplr', () => {
context('Test commands', () => {
it(`should complete Keplr setup by importing an existing wallet using 24 word phrase`, () => {
cy.setupWallet().then(setupFinished => {
it(`should create a new wallet using 24 word phrase`, () => {
cy.setupWallet(
'orbit bench unit task food shock brand bracket domain regular warfare company announce wheel grape trust sphere boy doctor half guard ritual three ecology',
'Test1234',
true,
'My Wallet 2',
).then(setupFinished => {
expect(setupFinished).to.be.true;
});
cy.visit('/');
});
it(`should reject connection with wallet`, () => {
cy.visit('/');
const alertShown = cy.stub().as('alertShown');
cy.on('window:alert', alertShown);

Expand Down Expand Up @@ -55,13 +60,8 @@ describe('Keplr', () => {
'Offer accepted',
);
});
it(`should create a new wallet using 24 word phrase`, () => {
cy.setupWallet(
'orbit bench unit task food shock brand bracket domain regular warfare company announce wheel grape trust sphere boy doctor half guard ritual three ecology',
'Test1234',
true,
'My Wallet 2',
).then(setupFinished => {
it(`should complete Keplr setup by importing an existing wallet using 24 word phrase`, () => {
cy.setupWallet().then(setupFinished => {
expect(setupFinished).to.be.true;
});
});
Expand Down

0 comments on commit 4665470

Please sign in to comment.