Skip to content

Commit

Permalink
Merge branch 'release-0.10.x' of https://github.com/mosip/inji-verify
Browse files Browse the repository at this point in the history
…into release-0.10.x

Signed-off-by: srikanth716 <[email protected]>
  • Loading branch information
srikanth716 committed Aug 28, 2024
2 parents 2c85011 + dd8d6e1 commit 79c01fb
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 36 deletions.
25 changes: 11 additions & 14 deletions inji-verify/src/components/Home/VerificationSection/QrScanner.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useCallback, useEffect, useRef, useState } from "react";
import React, { useEffect, useRef, useState } from "react";
import CameraAccessDenied from "./CameraAccessDenied";
import { ScanSessionExpiryTime } from "../../../utils/config";
import { useAppDispatch } from "../../../redux/hooks";
Expand All @@ -18,18 +18,15 @@ function QrScanner() {

const scannerRef = useRef<HTMLDivElement>(null);

const onSuccess = useCallback(
(decodedText: any) => {
dispatch(
verificationInit({
qrReadResult: { qrData: decodedText, status: "SUCCESS" },
flow: "SCAN",
})
);
clearTimeout(timer);
},
[dispatch]
);
const onSuccess = (decodedText: any) => {
dispatch(
verificationInit({
qrReadResult: { qrData: decodedText, status: "SUCCESS" },
flow: "SCAN",
})
);
clearTimeout(timer);
};

useEffect(() => {
timer = setTimeout(() => {
Expand All @@ -49,7 +46,7 @@ function QrScanner() {
console.log("Clearing timeout");
clearTimeout(timer);
};
}, [dispatch, onSuccess]);
}, [dispatch]);

useEffect(() => {
// Disable inbuilt border around the video
Expand Down
11 changes: 1 addition & 10 deletions ui-test/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
<selenium.version>4.11.0</selenium.version>
<cucumber.testing.version>7.2.3</cucumber.testing.version>
<surefire.plugin.version>3.0.0-M5</surefire.plugin.version>
<!-- Lombok -->
<lombok.version>1.18.30</lombok.version>
</properties>

<dependencies>
Expand All @@ -23,13 +21,6 @@
<version>${selenium.version}</version>
</dependency>

<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>${lombok.version}</version>
<scope>provided</scope>
</dependency>

<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
Expand Down Expand Up @@ -148,4 +139,4 @@
</plugin>
</plugins>
</build>
</project>
</project>
16 changes: 4 additions & 12 deletions ui-test/src/test/java/runnerfiles/Runner.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,11 @@
import io.cucumber.testng.CucumberOptions;

@RunWith(Cucumber.class)
@CucumberOptions(
features = {"src/test/resources/featurefiles/"},
dryRun = !true,
glue = {"stepdefinitions", "utils"},
snippets = SnippetType.CAMELCASE,
monochrome = true,
plugin = {"pretty",
"html:reports",
"html:target/cucumber.html", "json:target/cucumber.json",
"summary","com.aventstack.extentreports.cucumber.adapter.ExtentCucumberAdapter:"}
//tags = "@smoke"
@CucumberOptions(features = { "src/test/resources/featurefiles" }, dryRun = !true, glue = { "stepdefinitions",
"utils" }, snippets = SnippetType.CAMELCASE, monochrome = true, plugin = { "pretty", "html:reports", "summary" }
// tags = "@smoke"
)

public class Runner extends AbstractTestNGCucumberTests{
public class Runner extends AbstractTestNGCucumberTests {

}

0 comments on commit 79c01fb

Please sign in to comment.