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

feat: Typhon wallet registration | NPG-000 #657

Merged
merged 123 commits into from
Feb 26, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
123 commits
Select commit Hold shift + click to select a range
7f9a5b3
feat: added playwright
alicechaitea Jan 17, 2024
af8fd37
fix: changed branch name
alicechaitea Jan 17, 2024
fa8e281
fix: reaching the typhon wallet extension
alicechaitea Jan 18, 2024
ade6d33
fix: reaching the typhon wallet extension
alicechaitea Jan 18, 2024
23c9ff3
fix: enabled access to extension
alicechaitea Jan 18, 2024
848d0e3
fix: relative path didn't work
alicechaitea Jan 19, 2024
d00cdba
fix: moved files around
alicechaitea Jan 19, 2024
779bf82
fix: playwright not recognizing static element
alicechaitea Jan 19, 2024
08d70b8
fix: file update
alicechaitea Jan 19, 2024
7261cd9
feat: added second click
alicechaitea Jan 19, 2024
108252e
feat: add reset user state
alicechaitea Jan 19, 2024
214845e
feat: added dotenv
alicechaitea Jan 19, 2024
b3c3fc0
feat: added credentials storage and module to match element with seed…
alicechaitea Jan 19, 2024
14c8567
fix: retrieval of credentials not working properly
alicechaitea Jan 22, 2024
938c34d
fix: path to file storing credentials
alicechaitea Jan 22, 2024
19a4845
fix: selector should be working now
alicechaitea Jan 22, 2024
b58529f
feat: added selector for continueButton
alicechaitea Jan 22, 2024
a462339
feat: fetch seedword according to position and fill in field
alicechaitea Jan 22, 2024
334e0c4
feat: added logout and remove wallet flow
alicechaitea Jan 23, 2024
c1e1f6c
feat: added logout and remove wallet flow
alicechaitea Jan 23, 2024
3ea6d54
fix: removed remove wallet sequence
alicechaitea Jan 23, 2024
7da08e5
fix: wrong redirection
alicechaitea Jan 23, 2024
885bde3
fix: change element path
alicechaitea Jan 23, 2024
bb2f076
fix: locactor for clickBlankSpace
alicechaitea Jan 23, 2024
9b2b750
fix: cleaned up the repo
alicechaitea Jan 24, 2024
39ef453
fix: updated branchname
alicechaitea Jan 24, 2024
7f31291
fix: updated earthly to 0.8.1
alicechaitea Jan 24, 2024
6268251
fix: formatting of cargo.lock
alicechaitea Jan 25, 2024
280e78a
fix: update buildkit and change .env to .txt
alicechaitea Jan 25, 2024
1b7e6d1
fix: nix.yml
alicechaitea Jan 25, 2024
5dfad46
fix: replaced direct path with relative path
alicechaitea Jan 25, 2024
2565c0b
fix: enable scroll down to desired position relatively
alicechaitea Jan 25, 2024
717af97
feat: added logout flow to reset state
alicechaitea Jan 26, 2024
fc4f878
fix: confirmation couldn't be located
alicechaitea Jan 26, 2024
f2e44af
feat: paste copied address to address field
alicechaitea Jan 27, 2024
16e7aa4
feat: added ADA fund check and relative paths to .gitignore
alicechaitea Jan 29, 2024
0d2ad45
fix: delete trash
alicechaitea Jan 29, 2024
42e5601
fix: update .gitignore
alicechaitea Jan 29, 2024
19d29bc
test: .gitignore
alicechaitea Jan 29, 2024
1a49e87
fix: deleted trash again
alicechaitea Jan 29, 2024
c646481
fix: updated .gitignore
alicechaitea Jan 29, 2024
6f1de3c
test: configuration of .gitignore
alicechaitea Jan 29, 2024
239e128
fix: format of .gitignore configuration
alicechaitea Jan 29, 2024
3c019bf
test: .gitignore configuration
alicechaitea Jan 29, 2024
d6af382
fix: delete trash again
alicechaitea Jan 29, 2024
a09fbd5
fix: removed node_modules from .gitignore
alicechaitea Jan 30, 2024
7575b1a
fix: buildkit dependency
alicechaitea Jan 30, 2024
40f313c
fix: update earthly to 0.8.2
alicechaitea Jan 30, 2024
a916761
fix: ci error
alicechaitea Jan 30, 2024
45dfc0c
fix: reorganized files
alicechaitea Jan 31, 2024
a3a7b2f
fix: path wasn't working
alicechaitea Jan 31, 2024
0bff0f0
fix: repo clean up
alicechaitea Jan 31, 2024
75ddd87
fix: edited code
alicechaitea Jan 31, 2024
8f2478b
fix: fixed nix.yml and rechecked Earthfile
alicechaitea Jan 31, 2024
ff4281b
test: I am learning how to use GIT
alicechaitea Jan 31, 2024
55a4598
fix: revert nix file
kukkok3 Jan 31, 2024
bda3949
test
alicechaitea Jan 31, 2024
d3629a4
fix: restore Earthfile
alicechaitea Jan 31, 2024
1c90514
fix: restore Earthfile
alicechaitea Jan 31, 2024
41e12e8
test
alicechaitea Jan 31, 2024
dab7d47
fix: moved folders to the correct place
alicechaitea Feb 1, 2024
8f97d5e
fix: deleted unused files
alicechaitea Feb 1, 2024
528ce53
fix: fixed file paths to relative
alicechaitea Feb 3, 2024
dec16aa
fix: restored test.yml and moved package-lock.json package.json playw…
alicechaitea Feb 3, 2024
857a63f
fix: removed end2end folder and demo-todo-app.spec.ts
alicechaitea Feb 3, 2024
4331833
feat: combine logout flow with registration flow
alicechaitea Feb 5, 2024
6a07bfd
fix: added playwright-report to .gitignore
alicechaitea Feb 5, 2024
46e1bec
fix: change .spec.ts to .ts
alicechaitea Feb 5, 2024
07e460b
fix: restore nix.yml
kukkok3 Feb 5, 2024
8aead42
fix: restore files
kukkok3 Feb 5, 2024
98edb65
fix: remove temp files from remote repo
alicechaitea Feb 6, 2024
aa5b957
fix: remove temp files
alicechaitea Feb 6, 2024
9df529c
fix: added a dir to .gitignore
alicechaitea Feb 6, 2024
96f6101
fix: deleted extensions folder
alicechaitea Feb 6, 2024
eecfeaf
Merge branch 'main' into tests/typhon-registration
alicechaitea Feb 6, 2024
887aa4e
fix: debug
alicechaitea Feb 6, 2024
b3e2a44
fix: add line to open new tab
alicechaitea Feb 6, 2024
be6292d
fix: add working script
alicechaitea Feb 6, 2024
138d4a6
fix: remove extensions from .gitignore
alicechaitea Feb 6, 2024
58b6804
fix: move files and rename test script
alicechaitea Feb 6, 2024
cb24c75
feat: configure playwright to run via earthly docker
alicechaitea Feb 7, 2024
dd7f219
Merge branch 'main' into tests/typhon-registration
kukkok3 Feb 7, 2024
43fb53a
feat: add crx download feature
alicechaitea Feb 9, 2024
6dfbd94
fix: rust ci
alicechaitea Feb 9, 2024
0171a7a
feat: download and unpack extension file
alicechaitea Feb 12, 2024
a498159
fix: update directories
alicechaitea Feb 12, 2024
e885cc9
fix: modify .gitignore
alicechaitea Feb 12, 2024
3f48baf
fix: cleaned up repo
alicechaitea Feb 12, 2024
03d1f9b
fix: port conflict for chromium browser session
alicechaitea Feb 13, 2024
1f3efbe
fix: typo
alicechaitea Feb 13, 2024
7d36aba
fix: cosmetics
alicechaitea Feb 13, 2024
e6296b9
fix: update rustc to 1.76.0
alicechaitea Feb 14, 2024
400d9bd
fix: amend and add layers to earthfile
alicechaitea Feb 14, 2024
911eb44
fix: update playwright.config.ts
alicechaitea Feb 14, 2024
5503c6f
fix: compile test into one RUN
alicechaitea Feb 15, 2024
443782a
fix: save state
alicechaitea Feb 15, 2024
a27304d
Merge branch 'main' into tests/typhon-registration
alicechaitea Feb 15, 2024
a787dd6
fix: delete unused code
alicechaitea Feb 15, 2024
a6ddd0a
Merge branch 'tests/typhon-registration' of https://github.com/input-…
alicechaitea Feb 15, 2024
d4036b6
fix: rename wallet-setup.spec.ts to global-setup.ts
alicechaitea Feb 16, 2024
5ee259d
fix: delete playwright-report/index.html and added path to .gitignore
alicechaitea Feb 16, 2024
f09ef6c
fix: add path to .gitignore and delete tests/wallet-automation/extens…
alicechaitea Feb 16, 2024
5b9c787
fix: add COPY global-setup.ts . to line 27 in Earthfile
alicechaitea Feb 16, 2024
c94be62
fix: add unzip-crx-3 snippet to global-setup.ts
alicechaitea Feb 16, 2024
51fd298
feat: abort python file and add unzip-crx-3 as replacement
alicechaitea Feb 16, 2024
e0c463e
fix: amend earthfile to RUN xvfb-run -a npx playwright test
alicechaitea Feb 16, 2024
89b2afc
fix: remove python file
alicechaitea Feb 16, 2024
331b1a8
fix: remove python from Earthfile
alicechaitea Feb 16, 2024
4e1871a
fix: remove log out flow
alicechaitea Feb 16, 2024
c857b50
feat: add voting registration and confirm transaction flow
alicechaitea Feb 16, 2024
0945ae0
fix: inactivate debug line
alicechaitea Feb 16, 2024
8d231fc
fix: delete typhon-wallet-logout.ts
alicechaitea Feb 16, 2024
ce746f2
fix: clean up .gitignore
alicechaitea Feb 16, 2024
9d89417
fix: udpate rusct to 1.76.0
alicechaitea Feb 17, 2024
5a55d3e
fix: restore nix.yml fix
alicechaitea Feb 17, 2024
dfdf3c7
fix: fix dynamic xpath
alicechaitea Feb 19, 2024
a6e5274
fix: update dynamic element selector
alicechaitea Feb 19, 2024
16a9658
fix: amend line 10 of package.json to npx playwright test
alicechaitea Feb 21, 2024
e3effcd
fix: remove test-1.spec.ts
alicechaitea Feb 21, 2024
8ecce79
fix: remove nix.yml
kukkok3 Feb 21, 2024
90f3545
fix: pin cargo chef version
kukkok3 Feb 21, 2024
540f025
fix: pin refinery_cli version
kukkok3 Feb 21, 2024
5b533dd
fix: deleted commented lines
alicechaitea Feb 26, 2024
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
2 changes: 1 addition & 1 deletion .github/workflows/ci-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
with:
fetch-depth: 0
- name: Setup CI
uses: input-output-hk/catalyst-ci/actions/setup@master
uses: input-output-hk/catalyst-ci/actions/setup@tests/typhon-registration
kukkok3 marked this conversation as resolved.
Show resolved Hide resolved
with:
aws_role_arn: ${{ env.AWS_ROLE_ARN }}
aws_region: ${{ env.AWS_REGION }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-tests-n-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ jobs:
cargo llvm-cov report --lcov --output-path ./lcov.info

- name: Upload code coverage to coveralls.io
uses: coverallsapp/github-action@master
uses: coverallsapp/github-action@tests/typhon-registration
kukkok3 marked this conversation as resolved.
Show resolved Hide resolved
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: "./lcov.info"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ permissions:

jobs:
ci:
uses: input-output-hk/catalyst-ci/.github/workflows/ci.yml@master
uses: input-output-hk/catalyst-ci/.github/workflows/ci.yml@tests/typhon-registration
kukkok3 marked this conversation as resolved.
Show resolved Hide resolved
with:
aws_ecr_registry: 332405224602.dkr.ecr.eu-central-1.amazonaws.com
aws_role_arn: arn:aws:iam::332405224602:role/ci
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/title-validation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
pull-requests: read
statuses: write
steps:
- uses: deepakputhraya/action-pr-title@master
- uses: deepakputhraya/action-pr-title@tests/typhon-registration
kukkok3 marked this conversation as resolved.
Show resolved Hide resolved
with:
regex: '^(?:feat|fix|docs|style|refactor|test|chore|build|ci|perf|revert)(?:\(.+\))?:\s.+(\s\|\s)(NPG-\d+)$'
github_token: ${{ github.token }}
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -118,4 +118,9 @@ lefthook.yml
treefmt.toml

# local earthly Environments
local/*
local/*
node_modules/
/test-results/
/playwright-report/
/blob-report/
/playwright/.cache/
18 changes: 18 additions & 0 deletions e2e/example.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { test, expect } from '@playwright/test';

test('has title', async ({ page }) => {
await page.goto('https://playwright.dev/');

// Expect a title "to contain" a substring.
await expect(page).toHaveTitle(/Playwright/);
});

test('get started link', async ({ page }) => {
await page.goto('https://playwright.dev/');

// Click the get started link.
await page.getByRole('link', { name: 'Get started' }).click();

// Expects page to have a heading with the name of Installation.
await expect(page.getByRole('heading', { name: 'Installation' })).toBeVisible();
});
91 changes: 91 additions & 0 deletions package-lock.json
kukkok3 marked this conversation as resolved.
Show resolved Hide resolved

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 25 additions & 0 deletions package.json
kukkok3 marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"name": "catalyst-core",
"version": "1.0.0",
"description": "<!-- markdownlint-disable no-inline-html --> <h1 align=\"center\">Catalyst Core</h1>",
"main": "index.js",
"directories": {
"test": "tests"
},
"scripts": {},
"repository": {
"type": "git",
"url": "git+https://github.com/input-output-hk/catalyst-core.git"
},
"keywords": [],
"author": "",
"license": "ISC",
"bugs": {
"url": "https://github.com/input-output-hk/catalyst-core/issues"
},
"homepage": "https://github.com/input-output-hk/catalyst-core#readme",
"devDependencies": {
"@playwright/test": "^1.41.0",
"@types/node": "^20.11.4"
}
}
77 changes: 77 additions & 0 deletions playwright.config.ts
kukkok3 marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
import { defineConfig, devices } from '@playwright/test';

/**
* Read environment variables from file.
* https://github.com/motdotla/dotenv
*/
// require('dotenv').config();

/**
* See https://playwright.dev/docs/test-configuration.
*/
export default defineConfig({
testDir: './e2e',
/* Run tests in files in parallel */
fullyParallel: true,
/* Fail the build on CI if you accidentally left test.only in the source code. */
forbidOnly: !!process.env.CI,
/* Retry on CI only */
retries: process.env.CI ? 2 : 0,
/* Opt out of parallel tests on CI. */
workers: process.env.CI ? 1 : undefined,
/* Reporter to use. See https://playwright.dev/docs/test-reporters */
reporter: 'html',
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
use: {
/* Base URL to use in actions like `await page.goto('/')`. */
// baseURL: 'http://127.0.0.1:3000',

/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
trace: 'on-first-retry',
},

/* Configure projects for major browsers */
projects: [
{
name: 'chromium',
use: { ...devices['Desktop Chrome'] },
},

{
name: 'firefox',
use: { ...devices['Desktop Firefox'] },
},

{
name: 'webkit',
use: { ...devices['Desktop Safari'] },
},

/* Test against mobile viewports. */
// {
// name: 'Mobile Chrome',
// use: { ...devices['Pixel 5'] },
// },
// {
// name: 'Mobile Safari',
// use: { ...devices['iPhone 12'] },
// },

/* Test against branded browsers. */
// {
// name: 'Microsoft Edge',
// use: { ...devices['Desktop Edge'], channel: 'msedge' },
// },
// {
// name: 'Google Chrome',
// use: { ...devices['Desktop Chrome'], channel: 'chrome' },
// },
],

/* Run your local dev server before starting the tests */
// webServer: {
// command: 'npm run start',
// url: 'http://127.0.0.1:3000',
// reuseExistingServer: !process.env.CI,
// },
});
2 changes: 1 addition & 1 deletion src/catalyst-toolbox/.github/workflows/test.yml
kukkok3 marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ jobs:
timeout: 3600

- name: upload to Coveralls
uses: coverallsapp/github-action@master
uses: coverallsapp/github-action@tests/typhon-registration
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: './lcov.info'
2 changes: 1 addition & 1 deletion src/chain-libs/.github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ jobs:
timeout: 600

- name: upload to Coveralls
uses: coverallsapp/github-action@master
uses: coverallsapp/github-action@tests/typhon-registration
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: './lcov.info'
2 changes: 1 addition & 1 deletion src/chain-wallet-libs/.github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
version: ${{ steps.get_version.outputs.version }}
steps:
- name: Checkout code
uses: actions/checkout@master
uses: actions/checkout@tests/typhon-registration

- name: Create Release
id: create_release
Expand Down
2 changes: 1 addition & 1 deletion src/jormungandr/.github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ jobs:
timeout: 3600

- name: upload to Coveralls
uses: coverallsapp/github-action@master
uses: coverallsapp/github-action@tests/typhon-registration
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: './lcov.info'
2 changes: 1 addition & 1 deletion src/vit-servicing-station-f10/.github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ jobs:
timeout: 600

- name: upload to Coveralls
uses: coverallsapp/github-action@master
uses: coverallsapp/github-action@tests/typhon-registration
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: './lcov.info'
2 changes: 1 addition & 1 deletion src/vit-servicing-station/.github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ jobs:
timeout: 600

- name: upload to Coveralls
uses: coverallsapp/github-action@master
uses: coverallsapp/github-action@tests/typhon-registration
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: './lcov.info'
2 changes: 1 addition & 1 deletion src/vit-testing/.github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ jobs:
timeout: 3600

- name: upload to Coveralls
uses: coverallsapp/github-action@master
uses: coverallsapp/github-action@tests/typhon-registration
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: './lcov.info'
Loading
Loading