Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce flexible multi wallet handling in the test suite - PLT-8847 #29

Merged
merged 17 commits into from
Dec 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading