Skip to content

Commit

Permalink
Remove unwanted test
Browse files Browse the repository at this point in the history
  • Loading branch information
wryonik committed Jun 25, 2024
1 parent 718fee1 commit e81faf3
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 79 deletions.
75 changes: 0 additions & 75 deletions packages/app/src/constants.ts

This file was deleted.

1 change: 0 additions & 1 deletion packages/app/tests/App.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ jest.mock("wagmi", () => {
describe("App", () => {
test("renders app", async () => {
render(<App />);
await new Promise((r) => setTimeout(r, 1000));
const linkElement = screen.getByText(/Proof of Twitter: ZK Email Demo/i);
expect(linkElement).toBeInTheDocument();
});
Expand Down
2 changes: 1 addition & 1 deletion packages/app/tests/e2e-dl-zkp.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ describe("App.js", () => {
// status = await page.$eval("[data-testid='status-downloading-proof-files']", e => (e.attributes as any)['data-testid'].value);
// expect(status).toBe("status-downloading-proof-files");

await page.waitForSelector("[data-testid='status-proof-files-downloaded-successfully'", {timeout: 600000})
await page.waitForSelector("[data-testid='status-proof-files-downloaded-successfully'", {timeout: 1000000})

await page.click(proveButtonSelector);

Expand Down
4 changes: 2 additions & 2 deletions packages/app/tests/e2e-ui.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ const setTextAreaValue = async (page: Page, selector: string, value: string) =>

const gotToPageAndEnterInputs = async (page: Page, emailInputSelector: string, ethInputSelector: string, testEmailText: string, testEthAddress: string) => {
await page.goto(pageUrl);
// const proveButtonSelector = "button[data-testid='upload-email-eml-file-button']";
// await page.click(proveButtonSelector);
const proveButtonSelector = "button[data-testid='upload-email-eml-file-button']";
await page.click(proveButtonSelector);

await page.waitForSelector(emailInputSelector);
// 'page.keyboard.type()' takes too long. Use workaround.
Expand Down

0 comments on commit e81faf3

Please sign in to comment.