From 2425e5122330eb37cd035918395488727dced31b Mon Sep 17 00:00:00 2001 From: Ankit Verma Date: Fri, 1 Nov 2024 22:24:21 +0530 Subject: [PATCH 1/4] :hammer:[refractor][made changes for tests] --- .../dwa-starter-vanillajs-vite/index.html | 4 + javascript/dwa-starter-vanillajs-vite/main.js | 197 ++- .../dwa-starter-vanillajs-vite/manifest.json | 25 + .../package-lock.json | 1117 +++++++++++++++-- .../dwa-starter-vanillajs-vite/package.json | 6 +- .../playwright.config.js | 42 +- .../public/apple-touch-icon-180x180.png | Bin 0 -> 2833 bytes .../public/favicon.ico | Bin 0 -> 1564 bytes .../public/favicon.svg | 130 ++ .../public/maskable-icon-512x512.png | Bin 0 -> 11375 bytes .../public/pwa-192x192.png | Bin 0 -> 4298 bytes .../public/pwa-512x512.png | Bin 0 -> 16976 bytes .../public/pwa-64x64.png | Bin 0 -> 1575 bytes javascript/dwa-starter-vanillajs-vite/sw.js | 53 + .../tests/addToHomeScreen.spec.js | 29 + .../tests/offline.spec.js | 18 + .../tests/sw.spec.js | 22 + 17 files changed, 1478 insertions(+), 165 deletions(-) create mode 100644 javascript/dwa-starter-vanillajs-vite/manifest.json create mode 100644 javascript/dwa-starter-vanillajs-vite/public/apple-touch-icon-180x180.png create mode 100644 javascript/dwa-starter-vanillajs-vite/public/favicon.ico create mode 100644 javascript/dwa-starter-vanillajs-vite/public/favicon.svg create mode 100644 javascript/dwa-starter-vanillajs-vite/public/maskable-icon-512x512.png create mode 100644 javascript/dwa-starter-vanillajs-vite/public/pwa-192x192.png create mode 100644 javascript/dwa-starter-vanillajs-vite/public/pwa-512x512.png create mode 100644 javascript/dwa-starter-vanillajs-vite/public/pwa-64x64.png create mode 100644 javascript/dwa-starter-vanillajs-vite/sw.js create mode 100644 javascript/dwa-starter-vanillajs-vite/tests/addToHomeScreen.spec.js create mode 100644 javascript/dwa-starter-vanillajs-vite/tests/offline.spec.js create mode 100644 javascript/dwa-starter-vanillajs-vite/tests/sw.spec.js diff --git a/javascript/dwa-starter-vanillajs-vite/index.html b/javascript/dwa-starter-vanillajs-vite/index.html index ba1ea68f..419608d4 100644 --- a/javascript/dwa-starter-vanillajs-vite/index.html +++ b/javascript/dwa-starter-vanillajs-vite/index.html @@ -5,6 +5,10 @@ DWA Starter + + + +