Skip to content

Commit

Permalink
Clean up register test (#1932)
Browse files Browse the repository at this point in the history
The e2e tests has unnecessary steps. This PR removes them.
  • Loading branch information
frederikrothenberger authored Sep 26, 2023
1 parent a7766b8 commit 1b1ce4e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/frontend/src/test-e2e/register.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
switchToPopup,
waitToClose,
} from "./util";
import { AuthenticateView, DemoAppView, MainView, WelcomeView } from "./views";
import { AuthenticateView, DemoAppView, MainView } from "./views";

// Read canister ids from the corresponding dfx files.
// This assumes that they have been successfully dfx-deployed
Expand All @@ -25,11 +25,7 @@ const TEST_APP_NICE_URL = "https://nice-name.com";
test("Register new identity and login with it", async () => {
await runInBrowser(async (browser: WebdriverIO.Browser) => {
await browser.url(II_URL);
const welcomeView = new WelcomeView(browser);
await welcomeView.waitForDisplay();
await welcomeView.register();
await addVirtualAuthenticator(browser);
await browser.url(II_URL);
const userNumber = await FLOWS.registerNewIdentityWelcomeView(
DEVICE_NAME1,
browser
Expand Down

0 comments on commit 1b1ce4e

Please sign in to comment.