Skip to content

Commit

Permalink
moved everything
Browse files Browse the repository at this point in the history
  • Loading branch information
yury-dubinin committed Nov 28, 2024
1 parent 85f145b commit 139e1e3
Show file tree
Hide file tree
Showing 29 changed files with 68 additions and 1,331 deletions.
30 changes: 15 additions & 15 deletions .github/workflows/frontend-e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,22 +54,22 @@ jobs:
- name: Install Playwright
run: |
echo "$GITHUB_OUTPUT"
yarn --cwd packages/web install --frozen-lockfile && npx playwright install --with-deps chromium
yarn --cwd packages/e2e install --frozen-lockfile && npx playwright install --with-deps chromium
- name: Run Swap Pair tests
env:
BASE_URL: "https://${{ needs.wait-for-deployment.outputs.environment_url }}"
PRIVATE_KEY: ${{ secrets.TEST_PRIVATE_KEY }}
WALLET_ID: ${{ secrets.TEST_WALLET_ID }}
run: |
cd packages/web
cd packages/e2e
npx playwright test -g "Test Swap feature"
- name: upload Swap test results
if: failure()
id: swap-test-results
uses: actions/upload-artifact@v4
with:
name: preview-swap-test-results
path: packages/web/playwright-report
path: packages/e2e/playwright-report

preview-portfolio-trx-tests:
timeout-minutes: 10
Expand All @@ -91,22 +91,22 @@ jobs:
${{ runner.OS }}-20.x-
- name: Install Playwright
run: |
yarn --cwd packages/web install --frozen-lockfile && npx playwright install --with-deps chromium
yarn --cwd packages/e2e install --frozen-lockfile && npx playwright install --with-deps chromium
- name: Run Portfolio tests
env:
BASE_URL: "https://${{ needs.wait-for-deployment.outputs.environment_url }}"
PRIVATE_KEY: ${{ secrets.TEST_PRIVATE_KEY }}
WALLET_ID: ${{ secrets.TEST_WALLET_ID }}
run: |
cd packages/web
cd packages/e2e
npx playwright test portfolio transactions
- name: upload Portfolio and transactions test results
if: failure()
id: portfolio-test-results
uses: actions/upload-artifact@v4
with:
name: preview-portfolio-trx-test-results
path: packages/web/playwright-report
path: packages/e2e/playwright-report

preview-pools-and-select-pair-tests:
timeout-minutes: 10
Expand All @@ -128,20 +128,20 @@ jobs:
${{ runner.OS }}-20.x-
- name: Install Playwright
run: |
yarn --cwd packages/web install --frozen-lockfile && npx playwright install --with-deps chromium
yarn --cwd packages/e2e install --frozen-lockfile && npx playwright install --with-deps chromium
- name: Run Pools tests
env:
BASE_URL: "https://${{ needs.wait-for-deployment.outputs.environment_url }}"
run: |
cd packages/web
cd packages/e2e
npx playwright test pools select
- name: upload pools test results
if: failure()
id: pools-test-results
uses: actions/upload-artifact@v4
with:
name: preview-pools-test-results
path: packages/web/playwright-report
path: packages/e2e/playwright-report

preview-trade-tests:
timeout-minutes: 10
Expand All @@ -164,22 +164,22 @@ jobs:
- name: Install Playwright
run: |
echo "$GITHUB_OUTPUT"
yarn --cwd packages/web install --frozen-lockfile && npx playwright install --with-deps chromium
yarn --cwd packages/e2e install --frozen-lockfile && npx playwright install --with-deps chromium
- name: Run Swap Pair tests
env:
BASE_URL: "https://${{ needs.wait-for-deployment.outputs.environment_url }}"
PRIVATE_KEY: ${{ secrets.TEST_PRIVATE_KEY }}
WALLET_ID: ${{ secrets.TEST_WALLET_ID }}
run: |
cd packages/web
cd packages/e2e
npx playwright test trade
- name: upload Trade test results
if: failure()
id: preview-trade-test-results
uses: actions/upload-artifact@v4
with:
name: preview-trade-test-results
path: packages/web/playwright-report
path: packages/e2e/playwright-report

preview-claim-tests:
timeout-minutes: 10
Expand All @@ -202,19 +202,19 @@ jobs:
- name: Install Playwright
run: |
echo "$GITHUB_OUTPUT"
yarn --cwd packages/web install --frozen-lockfile && npx playwright install --with-deps chromium
yarn --cwd packages/e2e install --frozen-lockfile && npx playwright install --with-deps chromium
- name: Run Swap Pair tests
env:
BASE_URL: "https://${{ needs.wait-for-deployment.outputs.environment_url }}"
PRIVATE_KEY: ${{ secrets.TEST_PRIVATE_KEY }}
WALLET_ID: ${{ secrets.TEST_WALLET_ID }}
run: |
cd packages/web
cd packages/e2e
npx playwright test claim
- name: upload Claim test results
if: failure()
id: claim-test-results
uses: actions/upload-artifact@v4
with:
name: preview-claim-test-results
path: packages/web/playwright-report
path: packages/e2e/playwright-report
12 changes: 6 additions & 6 deletions .github/workflows/monitoring-claim-orders .yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,21 +25,21 @@ jobs:
${{ runner.OS }}-20.x-
- name: Install Playwright
run: |
yarn --cwd packages/web install --frozen-lockfile && npx playwright install --with-deps chromium
yarn --cwd packages/e2e install --frozen-lockfile && npx playwright install --with-deps chromium
- name: Run Swap tests in US
env:
BASE_URL: "https://app.osmosis.zone"
PRIVATE_KEY: ${{ secrets.TEST_PRIVATE_KEY_1 }}
run: |
cd packages/web
cd packages/e2e
npx playwright test claim
- name: upload test results
if: failure()
id: e2e-test-results
uses: actions/upload-artifact@v4
with:
name: claim1-test-results
path: packages/web/playwright-report
path: packages/e2e/playwright-report

fe-claim2-tests:
timeout-minutes: 10
Expand All @@ -60,21 +60,21 @@ jobs:
${{ runner.OS }}-20.x-
- name: Install Playwright
run: |
yarn --cwd packages/web install --frozen-lockfile && npx playwright install --with-deps chromium
yarn --cwd packages/e2e install --frozen-lockfile && npx playwright install --with-deps chromium
- name: Run Claim tests
env:
BASE_URL: "https://app.osmosis.zone"
PRIVATE_KEY: ${{ secrets.TEST_PRIVATE_KEY_2 }}
run: |
cd packages/web
cd packages/e2e
npx playwright test claim
- name: upload claim2 test results
if: failure()
id: monitoring-test-results
uses: actions/upload-artifact@v4
with:
name: claim2-test-results
path: packages/web/playwright-report
path: packages/e2e/playwright-report

delete-deployments:
runs-on: ubuntu-latest
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/monitoring-e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,20 +114,20 @@ jobs:
${{ runner.OS }}-20.x-
- name: Install Playwright
run: |
yarn --cwd packages/web install --frozen-lockfile && npx playwright install --with-deps chromium
yarn --cwd packages/e2e install --frozen-lockfile && npx playwright install --with-deps chromium
- name: Run Swap tests on ${{ matrix.env }}
env:
BASE_URL: ${{ matrix.base-url }}
run: |
cd packages/web
cd packages/e2e
npx playwright test pools
- name: upload test results
if: failure()
id: e2e-test-results
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.env }}-quote-test-results
path: packages/web/playwright-report
path: packages/e2e/playwright-report

delete-deployments:
runs-on: ubuntu-latest
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/prod-frontend-e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,22 +52,22 @@ jobs:
${{ runner.OS }}-20.x-
- name: Install Playwright
run: |
yarn --cwd packages/web install --frozen-lockfile && npx playwright install --with-deps chromium
yarn --cwd packages/e2e install --frozen-lockfile && npx playwright install --with-deps chromium
- name: Run Swap Pair tests on Master
env:
BASE_URL: "https://app.osmosis.zone"
PRIVATE_KEY: ${{ secrets.TEST_PRIVATE_KEY }}
WALLET_ID: ${{ secrets.TEST_WALLET_ID }}
run: |
cd packages/web
cd packages/e2e
npx playwright test transactions portfolio swap.wallet
- name: upload test results
if: always()
id: e2e-test-results
uses: actions/upload-artifact@v4
with:
name: prod-e2e-test-results-${{ github.run_id }}
path: packages/web/playwright-report
path: packages/e2e/playwright-report
- name: Send Slack alert if test fails
id: slack
if: failure()
Expand Down Expand Up @@ -124,17 +124,17 @@ jobs:
${{ runner.OS }}-20.x-
- name: Install Playwright
run: |
yarn --cwd packages/web install --frozen-lockfile && npx playwright install --with-deps chromium
yarn --cwd packages/e2e install --frozen-lockfile && npx playwright install --with-deps chromium
- name: Run Pools tests
env:
BASE_URL: "https://app.osmosis.zone"
run: |
cd packages/web
cd packages/e2e
npx playwright test pools select
- name: upload pools test results
if: failure()
id: pools-test-results
uses: actions/upload-artifact@v4
with:
name: prod-pools-test-results-${{ github.run_id }}
path: packages/web/playwright-report
path: packages/e2e/playwright-report
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 4 additions & 2 deletions packages/e2e/test-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,9 @@ export class TestConfig {

if (USE_PROXY) {
console.info(
"Get Test Proxy configuration for server: " +
`Get Test Proxy configuration for server: ${
this.getProxyConfig().server
}`
);
return {
headless: headless,
Expand All @@ -54,8 +55,9 @@ export class TestConfig {
const viewport = { width: 1440, height: 1280 };
if (USE_PROXY) {
console.info(
"Get Test Proxy configuration for server: " +
`Get Test Proxy configuration for server: ${
this.getProxyConfig().server
}`
);
return {
headless: headless,
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ test.describe("Test Swap feature", () => {
});

test.afterAll(async () => {
console.log(test.info());
await context.close();
});

Expand Down
File renamed without changes.
29 changes: 29 additions & 0 deletions packages/e2e/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"compilerOptions": {
"experimentalDecorators": true,
"target": "es6",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"noEmit": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
"incremental": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"baseUrl": ".",
"paths": {
"~/*": ["*"]
},
"plugins": [{ "name": "next" }]
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
"exclude": ["node_modules"],
"types": ["node", "jest", "@testing-library/jest-dom"]
}
Binary file not shown.
58 changes: 0 additions & 58 deletions packages/web/e2e/pages/base-page.ts

This file was deleted.

Loading

0 comments on commit 139e1e3

Please sign in to comment.