From 4143e0cd2cec89c2adf68db26dd61abfd935e27e Mon Sep 17 00:00:00 2001 From: Viktor Fomin Date: Fri, 18 Feb 2022 14:03:55 +0300 Subject: [PATCH] Web: Client: Tests: TfaAuth render test --- web/ASC.Web.Client/tests/render_tests.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/web/ASC.Web.Client/tests/render_tests.js b/web/ASC.Web.Client/tests/render_tests.js index 38a622a55d..274a0dfc46 100644 --- a/web/ASC.Web.Client/tests/render_tests.js +++ b/web/ASC.Web.Client/tests/render_tests.js @@ -1,3 +1,5 @@ +const Endpoints = require("./mocking/endpoints.js"); + const browser = process.env.profile || "chromium"; const deviceType = process.env.DEVICE_TYPE || "desktop"; @@ -9,12 +11,12 @@ const featureName = isModel Feature(featureName); -Before(async ({ I }) => { - I.amOnPage("/confirm/TfaAuth"); - I.wait(2); -}); - Scenario("TfaAuth page render test", async ({ I }) => { + I.mockEndpoint(Endpoints.confirm, "confirm"); + I.amOnPage( + "/confirm/TfaAuth?type=TfaAuth&key=EXAMPLEKEY1&email=test%40example.com" + ); + I.see("Enter code from authentication app"); I.seeElement({