Skip to content

Commit

Permalink
Introduce flexible multi wallet handling in the test suite - PLT-8847 (
Browse files Browse the repository at this point in the history
…#29)

Co-authored-by: Larry Adames <[email protected]>
  • Loading branch information
paluh and ladamesny authored Dec 12, 2023
1 parent fc7fe4b commit 7b019a7
Show file tree
Hide file tree
Showing 54 changed files with 6,958 additions and 1,070 deletions.
1 change: 1 addition & 0 deletions e2e/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
src/**/*.js
reports
21 changes: 16 additions & 5 deletions e2e/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,25 @@

## Running

Run the tests:
Run the whole test suite:
```bash
./run_tests.sh @dev
./run_tests.sh '@regression'
```

If you have `xvfb-run` installed you can also use:

```bash
./run_invisible.sh '@regression'
```

Additionally we have pretty granular set of tags in the features files. You can pick and match tests by using different tags - for example:

```bash
./run_invisible.sh '@lace-configure'
```

## Wallets

Artifacts needed to install wallets for testing are found in [artifacts](artifacts).
Currently available are *Lace* and *Nami*. The testing wallets are setup
by either setting the `localStorage` in the Chrome browser or importing the
wallet by entering the mnemonic.
Currently available are *Lace* and *Nami*.

File renamed without changes.
1 change: 1 addition & 0 deletions e2e/artifacts/wallets/alice/testnet.bech32
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
addr_test1qq6lgsnllsnjm6sff57d9926lmfs62mhlgepd9lhvad7vjv3wsm4klfud6a7a826d86seqmw86l7fdugvkfur5k48wzsn3udmf
1 change: 1 addition & 0 deletions e2e/artifacts/wallets/bob/mnemonic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
donor afford margin car sunset tool mountain fringe question fuel obtain hedgehog mouse use bitter repeat judge street human voice execute soldier reunion youth
1 change: 1 addition & 0 deletions e2e/artifacts/wallets/bob/testnet.bech32
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
addr_test1qzmzvy7e6h7hs6t4gsek4azkszd9pucmw2pwazpx2t6fna0q2ckh2rhm5s7cm765xeqjkm6xs4cm6j3994cakdep7tyqa9ffn2
1 change: 1 addition & 0 deletions e2e/artifacts/wallets/charlie/mnemonic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nation sing illness question boost relief fiber sponsor multiply cave term category sweet nice this cliff grocery risk antique element mention often super vacuum
1 change: 1 addition & 0 deletions e2e/artifacts/wallets/charlie/testnet.bech32
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
addr_test1qzvvd73nhgram09y2s7uwg7j74w8jqzwtjgkln7tmkwftwrh95h2v0f6gy34rqcx5ulhsvmn8tuwyx2q56kcnlxup4xq3yxx2p
1 change: 1 addition & 0 deletions e2e/artifacts/wallets/empty/mnemonic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rebuild tornado repair relax nest perfect wash ready evidence net emerge black immune edge more claim canyon action kitten shuffle call power law arena
1 change: 1 addition & 0 deletions e2e/artifacts/wallets/empty/testnet.bech32
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
addr_test1qrn4apsca3enyj8su7td7tav6s94sds64dgyphzdftfv0v75gg8tt8l3uf0f4kylvd9cfevkavyyek0kys5g9m6mzeuspdpyaz
3 changes: 3 additions & 0 deletions e2e/config/mappings/page-elements/contract-simulation.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"Currency Amount" : { "role": "spinbutton", "name": "Decimal Amount"}
}
2 changes: 1 addition & 1 deletion e2e/config/mappings/page-elements/home.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"contract-input": {"role": "textbox", "name": "contract-input" },
"choice-input": {"role": "spinbutton", "name": "choice-input" }
}
}
3 changes: 3 additions & 0 deletions e2e/config/mappings/page-elements/javascript-editor.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"JS Editor": { "role": "textbox", "name": "Editor content;Press Alt+F1 for Accessibility Options."}
}
7 changes: 7 additions & 0 deletions e2e/config/mappings/page-elements/playground.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"editor header": { "role": "heading", "name": "project-title"},
"playground editor": { "role": "heading", "name": "javascript-editor"},
"Compile": { "role": "button", "name": "Compile"},
"Send To Simulator": { "role": "button", "name": "Send to Simulator"},
"JS Editor": { "role": "textbox", "name": "Editor content;Press Alt+F1 for Accessibility Options."}
}
Loading

0 comments on commit 7b019a7

Please sign in to comment.