-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
7 changed files
with
136 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
import { | ||
accesDaap, | ||
batchTransactions, | ||
login, | ||
pingPongHandler, | ||
validateToast, | ||
validateTransaction | ||
} from '../../utils/actions.ts'; | ||
import { | ||
GlobalSelectorEnum, | ||
GlobalDataEnum, | ||
WalletAdressEnum, | ||
TransactionIndexEnum | ||
} from '../../utils/enums.ts'; | ||
import { closeTransaction } from '../NegativeTests/actions.ts'; | ||
|
||
describe('Connect via URL - Ping & Pong ABI Test', () => { | ||
beforeEach(async () => { | ||
await accesDaap(); | ||
}); | ||
|
||
it('should connect via URL and sign ping&pong ABI', async () => { | ||
const loginData = { | ||
selector: GlobalSelectorEnum.keystoreBtn, | ||
file: GlobalDataEnum.keystoreFile, | ||
adress: WalletAdressEnum.adress2, | ||
urlConnect: true | ||
}; | ||
await login(loginData); | ||
await pingPongHandler(GlobalSelectorEnum.abiType); | ||
}); | ||
}); | ||
|
||
describe('Connect via URL with PEM', () => { | ||
beforeEach(async () => { | ||
await accesDaap(); | ||
}); | ||
|
||
it('connect via URL and sign transaction with PEM', async () => { | ||
const loginData = { | ||
selector: GlobalSelectorEnum.pemBtn, | ||
file: GlobalDataEnum.pemFile, | ||
adress: WalletAdressEnum.adress3, | ||
urlConnect: true | ||
}; | ||
await login(loginData); | ||
await pingPongHandler(GlobalSelectorEnum.abiType); | ||
}); | ||
}); | ||
|
||
describe('Connect via URL and Sign & Batch', () => { | ||
beforeEach(async () => { | ||
await accesDaap(); | ||
}); | ||
it('connecg via URL sign sign & batch ', async () => { | ||
const loginData = { | ||
selector: GlobalSelectorEnum.keystoreBtn, | ||
file: GlobalDataEnum.keystoreFile, | ||
adress: WalletAdressEnum.adress3, | ||
urlConnect: true | ||
}; | ||
await login(loginData); | ||
await batchTransactions(GlobalSelectorEnum.signAndBatchType); | ||
await validateToast(GlobalSelectorEnum.toastSelector); | ||
await browser.pause(4500); | ||
await validateTransaction(TransactionIndexEnum.signBatch); | ||
}); | ||
}); | ||
|
||
describe('Connect via URL and close transaction', () => { | ||
beforeEach(async () => { | ||
const loginData = { | ||
selector: GlobalSelectorEnum.keystoreBtn, | ||
file: GlobalDataEnum.keystoreFile, | ||
adress: WalletAdressEnum.adress4, | ||
urlConnect: true | ||
}; | ||
await accesDaap(); | ||
await login(loginData); | ||
}); | ||
it('should connect via URL and cancel transaction from wallet', async () => { | ||
await closeTransaction(); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters