Skip to content

Commit

Permalink
test: delete un unused dapp tests
Browse files Browse the repository at this point in the history
  • Loading branch information
beemi committed Oct 26, 2022
1 parent 516a088 commit 6d2fdfb
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 1,026 deletions.
30 changes: 15 additions & 15 deletions .github/workflows/pullrequests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,16 +76,16 @@ jobs:
yarn lint
yarn build
- name: Create wallet artifact
uses: actions/upload-artifact@v2.3.1
if: always()
with:
name: pull-request-wallet
path: dist
if-no-files-found: ignore
retention-days: 30
# - name: Create wallet artifact
# uses: actions/upload-artifact@v2.3.1
# if: always()
# with:
# name: pull-request-wallet
# path: dist
# if-no-files-found: ignore
# retention-days: 30

- name: Run Smoke tests againt PullRequest
- name: Run Smoke tests against PullRequest
uses: beemi/puppeteer-headful@v1.0.11
env:
CI: 'true'
Expand All @@ -101,10 +101,10 @@ jobs:
path: screenshots
if-no-files-found: ignore

- name: Discord notification
uses: sarisia/actions-status-discord@v1
if: always()
with:
webhook: ${{ secrets.DISCORD_PULL_REQUESTS_WEBHOOK }}
title: "${{ github.workflow}}"
# - name: Discord notification
# uses: sarisia/actions-status-discord@v1
# if: always()
# with:
# webhook: ${{ secrets.DISCORD_PULL_REQUESTS_WEBHOOK }}
# title: "${{ github.workflow}}"

118 changes: 0 additions & 118 deletions test/e2e/dapp_injection_tests/avalanche_dapp_injection.spec.js

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const passwordPage = new PasswordPage();
let browser, page;
const metamaskTestDappUrl = "https://metamask.github.io/test-dapp/"

describe("Sushi Dapp Injection-['MAINNET','PULL_REQUEST_TEST']", async () => {
describe("Dapp Injection-['MAINNET','PULL_REQUEST_TEST']", async () => {
beforeEach(async () => {
browser = await puppeteer.launch(testUtil.getChromeOptions());
page = await browser.newPage();
Expand All @@ -34,7 +34,7 @@ describe("Sushi Dapp Injection-['MAINNET','PULL_REQUEST_TEST']", async () => {
await browser.close();
});

it("Sushi injection - ETH", async () => {
it("Dapp injection - ETH", async () => {
const metaMaskTestDapp = await browser.newPage();
await metaMaskTestDapp.goto(metamaskTestDappUrl, { waitUntil: "load", timeout: 0 });
await metaMaskTestDapp.waitForSelector("#connectButton", { visible: true, timeout: 0})
Expand Down Expand Up @@ -74,7 +74,7 @@ describe("Sushi Dapp Injection-['MAINNET','PULL_REQUEST_TEST']", async () => {
expect(connectedAddress, "Sushi dapp ETH chain injection not connected.....").to.not.null;
}
});
it("Sushi injection - Polygon", async () => {
it("Dapp test app injection - Polygon", async () => {
let chain = "polygon";

// Connected dapp option
Expand All @@ -90,7 +90,6 @@ describe("Sushi Dapp Injection-['MAINNET','PULL_REQUEST_TEST']", async () => {
await metaMaskTestDapp.goto(metamaskTestDappUrl, { waitUntil: "load", timeout: 0 });
await metaMaskTestDapp.waitForSelector("#connectButton", { visible: true, timeout: 0})
console.log("Metmask test dapp loaded with connect button");
await testUtil.takeScreenshot(metaMaskTestDapp, "metamask-test-dapp-before-connect")

await metaMaskTestDapp.click("#connectButton");
await metaMaskTestDapp.waitForTimeout(2000);
Expand Down Expand Up @@ -120,9 +119,9 @@ describe("Sushi Dapp Injection-['MAINNET','PULL_REQUEST_TEST']", async () => {

// Check web3 status as connected
await metaMaskTestDapp.waitForSelector('#accounts', { visible: true, timeout: 30000 })
.catch((e) => expect(e, "Sushi dapp ETH chain injection not connected.....").to.not.throw());
await metaMaskTestDapp.waitForTimeout(3000);
const connectedAddress = await metaMaskTestDapp.$eval('#accounts', (el) => el.innerText)
console.log("Connected address: ", connectedAddress);
console.log("polygon Connected address: ", connectedAddress);
expect(connectedAddress, "Sushi dapp polygon chain injection not connected.....").to.not.equal("");
expect(connectedAddress, "Sushi dapp polygon chain injection not connected.....").to.not.null;
}
Expand Down
153 changes: 0 additions & 153 deletions test/e2e/dapp_injection_tests/oneinch_dapp_injection.spec.js

This file was deleted.

Loading

0 comments on commit 6d2fdfb

Please sign in to comment.