Skip to content

Commit

Permalink
test(extension): fix create multi-wallet tests
Browse files Browse the repository at this point in the history
  • Loading branch information
szymonmaslowski committed May 6, 2024
1 parent 88b1857 commit 7159e17
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ describe('Multi Wallet Setup/Create Wallet', () => {

const backButton = getBackButton();
fireEvent.click(backButton);
fireEvent.click(screen.queryByTestId('delete-address-modal-confirm'));
expect(await firstValueFrom(providers.confirmationDialog.shouldShowDialog$)).toBe(false);
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,12 @@ export const CreateWalletProvider = ({ children, providers }: Props): React.Reac
const next = async () => {
switch (step) {
case WalletCreateStep.RecoveryPhraseWriteDown: {
setFormDirty(true);
setStep(WalletCreateStep.RecoveryPhraseInput);
break;
}
case WalletCreateStep.RecoveryPhraseInput: {
setStep(WalletCreateStep.Setup);
setFormDirty(true);
history.push(walletRoutePaths.newWallet.create.setup);
break;
}
Expand All @@ -93,11 +93,11 @@ export const CreateWalletProvider = ({ children, providers }: Props): React.Reac
const back = () => {
switch (step) {
case WalletCreateStep.RecoveryPhraseWriteDown: {
setFormDirty(false);
history.push(walletRoutePaths.newWallet.root);
break;
}
case WalletCreateStep.RecoveryPhraseInput: {
setFormDirty(false);
generateMnemonic();
setStep(WalletCreateStep.RecoveryPhraseWriteDown);
break;
Expand Down

0 comments on commit 7159e17

Please sign in to comment.