@@ -26,7 +26,7 @@ test('Validate the index page loads with all samples displayed properly', async
2626 await expect ( page . locator ( "h3" ) ) . toContainText ( "Barcode Reader Samples" ) ;
2727 const buttonLinks = await page . locator ( "div.file a.button" ) ;
2828 const count = await buttonLinks . count ( ) ;
29- await expect ( count ) . toBe ( 19 ) ;
29+ await expect ( count ) . toBe ( 20 ) ;
3030
3131 await expect ( buttonLinks . nth ( 0 ) ) . toContainText ( "Hello World" ) ;
3232 await verifyLinkText ( page , buttonLinks , 0 , "hello-world/hello-world.html" ) ;
@@ -35,48 +35,49 @@ test('Validate the index page loads with all samples displayed properly', async
3535 await verifyLinkText ( page , buttonLinks , 1 , "hello-world/read-an-image.html" ) ;
3636
3737 await expect ( buttonLinks . nth ( 2 ) ) . toContainText ( "Hello World in Angular" ) ;
38- await expect ( buttonLinks . nth ( 3 ) ) . toContainText ( "Hello World in React" ) ;
39- await expect ( buttonLinks . nth ( 4 ) ) . toContainText ( "Hello World in React(using Hooks)" ) ;
40- await expect ( buttonLinks . nth ( 5 ) ) . toContainText ( "Hello World in Vue" ) ;
38+ await expect ( buttonLinks . nth ( 3 ) ) . toContainText ( "Hello World in Blazor" ) ;
39+ await expect ( buttonLinks . nth ( 4 ) ) . toContainText ( "Hello World in React" ) ;
40+ await expect ( buttonLinks . nth ( 5 ) ) . toContainText ( "Hello World in React(using Hooks)" ) ;
41+ await expect ( buttonLinks . nth ( 6 ) ) . toContainText ( "Hello World in Vue" ) ;
4142
42- await expect ( buttonLinks . nth ( 6 ) ) . toContainText ( "Hello World in Next.js" ) ;
43- await verifyLinkText ( page , buttonLinks , 6 , "https://github.com/Dynamsoft/barcode-reader-javascript-samples/tree/main/hello-world/next#readme" ) ;
43+ await expect ( buttonLinks . nth ( 7 ) ) . toContainText ( "Hello World in Next.js" ) ;
44+ await verifyLinkText ( page , buttonLinks , 7 , "https://github.com/Dynamsoft/barcode-reader-javascript-samples/tree/main/hello-world/next#readme" ) ;
4445
45- await expect ( buttonLinks . nth ( 7 ) ) . toContainText ( "Hello World in NuxtJS" ) ;
46- await verifyLinkText ( page , buttonLinks , 7 , "https://github.com/Dynamsoft/barcode-reader-javascript-samples/tree/main/hello-world/nuxt#readme" ) ;
46+ await expect ( buttonLinks . nth ( 8 ) ) . toContainText ( "Hello World in NuxtJS" ) ;
47+ await verifyLinkText ( page , buttonLinks , 8 , "https://github.com/Dynamsoft/barcode-reader-javascript-samples/tree/main/hello-world/nuxt#readme" ) ;
4748
48- await expect ( buttonLinks . nth ( 8 ) ) . toContainText ( "Hello World in Electron" ) ;
49- await verifyLinkText ( page , buttonLinks , 8 , "https://github.com/Dynamsoft/barcode-reader-javascript-samples/tree/main/hello-world/electron#readme" ) ;
49+ await expect ( buttonLinks . nth ( 9 ) ) . toContainText ( "Hello World in Electron" ) ;
50+ await verifyLinkText ( page , buttonLinks , 9 , "https://github.com/Dynamsoft/barcode-reader-javascript-samples/tree/main/hello-world/electron#readme" ) ;
5051
51- await expect ( buttonLinks . nth ( 9 ) ) . toContainText ( "Hello World in PWA" ) ;
52- await verifyLinkText ( page , buttonLinks , 9 , "hello-world/pwa/helloworld-pwa.html" ) ;
52+ await expect ( buttonLinks . nth ( 10 ) ) . toContainText ( "Hello World in PWA" ) ;
53+ await verifyLinkText ( page , buttonLinks , 10 , "hello-world/pwa/helloworld-pwa.html" ) ;
5354
54- await expect ( buttonLinks . nth ( 10 ) ) . toContainText ( "Hello World with RequireJS" ) ;
55- await verifyLinkText ( page , buttonLinks , 10 , "hello-world/requirejs.html" ) ;
55+ await expect ( buttonLinks . nth ( 11 ) ) . toContainText ( "Hello World with RequireJS" ) ;
56+ await verifyLinkText ( page , buttonLinks , 11 , "hello-world/requirejs.html" ) ;
5657
57- await expect ( buttonLinks . nth ( 11 ) ) . toContainText ( "Hello World with ES6" ) ;
58- await verifyLinkText ( page , buttonLinks , 11 , "hello-world/es6.html" ) ;
58+ await expect ( buttonLinks . nth ( 12 ) ) . toContainText ( "Hello World with ES6" ) ;
59+ await verifyLinkText ( page , buttonLinks , 12 , "hello-world/es6.html" ) ;
5960
60- await expect ( buttonLinks . nth ( 12 ) ) . toContainText ( "Hello World in WebView" ) ;
61- await verifyLinkText ( page , buttonLinks , 12 , "https://github.com/Dynamsoft/barcode-reader-javascript-samples/tree/main/hello-world/webview" ) ;
61+ await expect ( buttonLinks . nth ( 13 ) ) . toContainText ( "Hello World in WebView" ) ;
62+ await verifyLinkText ( page , buttonLinks , 13 , "https://github.com/Dynamsoft/barcode-reader-javascript-samples/tree/main/hello-world/webview" ) ;
6263
63- await expect ( buttonLinks . nth ( 13 ) ) . toContainText ( "Read Video and Fill a Form" ) ;
64- await verifyLinkText ( page , buttonLinks , 13 , "use-case/fill-a-form-with-barcode-reading.html" ) ;
64+ await expect ( buttonLinks . nth ( 14 ) ) . toContainText ( "Read Video and Fill a Form" ) ;
65+ await verifyLinkText ( page , buttonLinks , 14 , "use-case/fill-a-form-with-barcode-reading.html" ) ;
6566
66- await expect ( buttonLinks . nth ( 14 ) ) . toContainText ( "Read a Driver\'s License" ) ;
67- await verifyLinkText ( page , buttonLinks , 14 , "use-case/read-a-drivers-license/index.html" ) ;
67+ await expect ( buttonLinks . nth ( 15 ) ) . toContainText ( "Read a Driver\'s License" ) ;
68+ await verifyLinkText ( page , buttonLinks , 15 , "use-case/read-a-drivers-license/index.html" ) ;
6869
69- await expect ( buttonLinks . nth ( 15 ) ) . toContainText ( "Show Result Texts on the Video" ) ;
70- await verifyLinkText ( page , buttonLinks , 15 , "use-case/show-result-texts-on-the-video.html" ) ;
70+ await expect ( buttonLinks . nth ( 16 ) ) . toContainText ( "Show Result Texts on the Video" ) ;
71+ await verifyLinkText ( page , buttonLinks , 16 , "use-case/show-result-texts-on-the-video.html" ) ;
7172
72- await expect ( buttonLinks . nth ( 16 ) ) . toContainText ( "Find Item via Barcode" ) ;
73- await verifyLinkText ( page , buttonLinks , 16 , "use-case/locate-an-item-with-barcode/index.html" ) ;
73+ await expect ( buttonLinks . nth ( 17 ) ) . toContainText ( "Find Item via Barcode" ) ;
74+ await verifyLinkText ( page , buttonLinks , 17 , "use-case/locate-an-item-with-barcode/index.html" ) ;
7475
75- await expect ( buttonLinks . nth ( 17 ) ) . toContainText ( "Collect Images for Debugging" ) ;
76- await verifyLinkText ( page , buttonLinks , 17 , "https://github.com/Dynamsoft/barcode-reader-javascript-samples/tree/main/others/debug" ) ;
76+ await expect ( buttonLinks . nth ( 18 ) ) . toContainText ( "Collect Images for Debugging" ) ;
77+ await verifyLinkText ( page , buttonLinks , 18 , "https://github.com/Dynamsoft/barcode-reader-javascript-samples/tree/main/others/debug" ) ;
7778
78- await expect ( buttonLinks . nth ( 18 ) ) . toContainText ( "Official Online Demo" ) ;
79- await verifyLinkText ( page , buttonLinks , 18 , "https://demo.dynamsoft.com/barcode-reader-js/" ) ;
79+ await expect ( buttonLinks . nth ( 19 ) ) . toContainText ( "Official Online Demo" ) ;
80+ await verifyLinkText ( page , buttonLinks , 19 , "https://demo.dynamsoft.com/barcode-reader-js/" ) ;
8081} ) ;
8182
8283
0 commit comments