change locally before moving into main

This commit is contained in:
devipriya.l 2025-08-19 16:27:10 +05:30
parent 01d6995960
commit 759218bb2d
40 changed files with 2916 additions and 502 deletions

View File

@ -4,7 +4,9 @@
"description": "", "description": "",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {
"test": "echo \"Error: no test specified\" && exit 1" "test": "npx playwright test",
"test:headed": "npx playwright test --headed",
"test:report": "npx playwright show-report"
}, },
"keywords": [], "keywords": [],
"author": "", "author": "",

Binary file not shown.

After

Width:  |  Height:  |  Size: 234 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 91 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 690 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 80 KiB

View File

@ -1,129 +0,0 @@
# Page snapshot
```yaml
- banner:
- link:
- /url: /
- navigation:
- list:
- listitem:
- link "Home":
- /url: /
- listitem:
- link "Shop":
- /url: shop
- listitem:
- link "About us":
- /url: about
- listitem:
- link "B2B":
- /url: b2b
- listitem:
- link "Contact Us":
- /url: contact
- button ""
- list:
- listitem:
- link "Home":
- /url: /
- listitem:
- link "Shop":
- /url: shop
- listitem:
- link "About Us":
- /url: about
- listitem:
- link "B2B":
- /url: b2b
- listitem:
- link "Contact Us":
- /url: contact
- text:  Cart
- button ""
- list:
- listitem:
- link:
- /url: product-single-default.html
- text: 2x
- link "Lucky Wooden Elephant":
- /url: product-single-default.html
- text: "$29.00 Dimension: 40x60cm"
- button ""
- listitem:
- link:
- /url: product-single-default.html
- text: 2x
- link "Lucky Wooden Elephant":
- /url: product-single-default.html
- text: "$29.00 Dimension: 40x60cm"
- button ""
- list:
- listitem: Subtotal $60.59
- listitem: Shipping $7.00
- listitem: Taxes $0.00
- listitem: Total $67.59
- link "Checkout":
- /url: checkout.html
- list:
- listitem:
- link "Home":
- /url: /
- text: 
- listitem: B2B
- main:
- heading "Cultivating Success for Your Business with Authentic, Organic Produce" [level=4]
- paragraph: Dailykart is your trusted B2B partner, providing a world of premium organic produce sourced directly from farms committed to sustainable practices.
- paragraph: "Unparalleled Quality: We source only premium, certified organic products—ensuring superior nutritional value and rich, authentic flavor to enhance your offerings. Global Reach, Local Expertise: With a trusted network of organic farmers worldwide, we provide access to a wide variety of produce—delivered wherever your business operates. Transparent Integrity: Our end-to-end transparency ensures full traceability and adherence to organic standards, from cultivation to delivery. Dedicated Account Management: Our experienced B2B team partners with you to understand your unique needs, providing personalized service and a smooth procurement experience. Reliable, Timely Delivery: We combine efficient logistics with rigorous quality checks to ensure every order arrives fresh, intact, and on schedule—no matter the destination."
- heading "Partner with Dailykart and unlock a world of opportunity." [level=4]
- paragraph: "We Offer: Competitive Wholesale Pricing: Delivering value-driven pricing to help your business offer premium organic products without compromising on cost-effectiveness. Tailored Order Fulfillment: Flexible and scalable fulfillment solutions designed to meet your unique business requirements—whether high-volume supply or niche seasonal selections. Marketing & Sales Enablement: Comprehensive support through branded marketing assets and sales tools that communicate the distinct advantages of organic offerings. Partner with Dailykart and become part of a movement toward responsible sourcing, sustainable growth, and customer well-being. Together, we cultivate success with authenticity and purpose."
- link "Contact Us ":
- /url: contact
- heading "For Bulk Orders" [level=5]
- textbox "Company Name"
- textbox "Country Name"
- textbox "Contact Person"
- textbox "Designation"
- textbox "Email Address"
- textbox "Phone Number"
- textbox "Product"
- spinbutton
- textbox "Requirements"
- button "Submit"
- contentinfo:
- link:
- /url: /
- paragraph: We're more than just a distributor; we're passionate purveyors of premium organic products, driven by the belief that "Food is medicine, and medicine is food."
- heading "QUICK Links" [level=4]
- list:
- listitem:
- link "Home":
- /url: /
- listitem:
- link "About Us":
- /url: about
- listitem:
- link "Shop":
- /url: shop
- listitem:
- link "B2B":
- /url: b2b
- listitem:
- link "Contact Us":
- /url: contact
- heading "CONTACT INFO" [level=4]
- list:
- listitem:  Bengaluru Karnataka - 562130
- listitem:  sales@dailykart.com
- listitem:
- link:
- /url: ../wild-marvel.apk
- img
- paragraph:
- text: Copyright ©
- link "Opsmonsters":
- /url: https://opsmonsters.com/
- text: . All Rights Reserved
- link:
- /url: "#"
- button ""
```

File diff suppressed because it is too large Load Diff

Binary file not shown.

Before

Width:  |  Height:  |  Size: 691 KiB

File diff suppressed because one or more lines are too long

View File

@ -3,6 +3,7 @@ import { defineConfig } from '@playwright/test';
export default defineConfig({ export default defineConfig({
testDir: './tests', testDir: './tests',
use: { use: {
slowMo: 1000,
headless: true, headless: true,
viewport: { width: 1280, height: 720 }, viewport: { width: 1280, height: 720 },
ignoreHTTPSErrors: true, ignoreHTTPSErrors: true,

View File

@ -1,10 +1,8 @@
{ {
"status": "failed", "status": "failed",
"failedTests": [ "failedTests": [
"6e8f7a38e1e81be279f2-ed3bb01279d8bb75d8f6",
"05f727d9409473e95678-87e71b39b34ea5cb1267",
"8f07dca4a6b6d7747131-e4d098eb3929956ec3cf", "8f07dca4a6b6d7747131-e4d098eb3929956ec3cf",
"f02597932f882171ff3f-d2354368a97361de7e59", "f02597932f882171ff3f-282b631232e0e4b35448",
"43689b503ce203b345cd-ed1b516cdf6ed769e0b6" "43689b503ce203b345cd-ed1b516cdf6ed769e0b6"
] ]
} }

Binary file not shown.

Before

Width:  |  Height:  |  Size: 690 KiB

View File

@ -1,129 +0,0 @@
# Page snapshot
```yaml
- banner:
- link:
- /url: /
- navigation:
- list:
- listitem:
- link "Home":
- /url: /
- listitem:
- link "Shop":
- /url: shop
- listitem:
- link "About us":
- /url: about
- listitem:
- link "B2B":
- /url: b2b
- listitem:
- link "Contact Us":
- /url: contact
- button ""
- list:
- listitem:
- link "Home":
- /url: /
- listitem:
- link "Shop":
- /url: shop
- listitem:
- link "About Us":
- /url: about
- listitem:
- link "B2B":
- /url: b2b
- listitem:
- link "Contact Us":
- /url: contact
- text:  Cart
- button ""
- list:
- listitem:
- link:
- /url: product-single-default.html
- text: 2x
- link "Lucky Wooden Elephant":
- /url: product-single-default.html
- text: "$29.00 Dimension: 40x60cm"
- button ""
- listitem:
- link:
- /url: product-single-default.html
- text: 2x
- link "Lucky Wooden Elephant":
- /url: product-single-default.html
- text: "$29.00 Dimension: 40x60cm"
- button ""
- list:
- listitem: Subtotal $60.59
- listitem: Shipping $7.00
- listitem: Taxes $0.00
- listitem: Total $67.59
- link "Checkout":
- /url: checkout.html
- list:
- listitem:
- link "Home":
- /url: /
- text: 
- listitem: B2B
- main:
- heading "Cultivating Success for Your Business with Authentic, Organic Produce" [level=4]
- paragraph: Dailykart is your trusted B2B partner, providing a world of premium organic produce sourced directly from farms committed to sustainable practices.
- paragraph: "Unparalleled Quality: We source only premium, certified organic products—ensuring superior nutritional value and rich, authentic flavor to enhance your offerings. Global Reach, Local Expertise: With a trusted network of organic farmers worldwide, we provide access to a wide variety of produce—delivered wherever your business operates. Transparent Integrity: Our end-to-end transparency ensures full traceability and adherence to organic standards, from cultivation to delivery. Dedicated Account Management: Our experienced B2B team partners with you to understand your unique needs, providing personalized service and a smooth procurement experience. Reliable, Timely Delivery: We combine efficient logistics with rigorous quality checks to ensure every order arrives fresh, intact, and on schedule—no matter the destination."
- heading "Partner with Dailykart and unlock a world of opportunity." [level=4]
- paragraph: "We Offer: Competitive Wholesale Pricing: Delivering value-driven pricing to help your business offer premium organic products without compromising on cost-effectiveness. Tailored Order Fulfillment: Flexible and scalable fulfillment solutions designed to meet your unique business requirements—whether high-volume supply or niche seasonal selections. Marketing & Sales Enablement: Comprehensive support through branded marketing assets and sales tools that communicate the distinct advantages of organic offerings. Partner with Dailykart and become part of a movement toward responsible sourcing, sustainable growth, and customer well-being. Together, we cultivate success with authenticity and purpose."
- link "Contact Us ":
- /url: contact
- heading "For Bulk Orders" [level=5]
- textbox "Company Name"
- textbox "Country Name"
- textbox "Contact Person"
- textbox "Designation"
- textbox "Email Address"
- textbox "Phone Number"
- textbox "Product"
- spinbutton
- textbox "Requirements"
- button "Submit"
- contentinfo:
- link:
- /url: /
- paragraph: We're more than just a distributor; we're passionate purveyors of premium organic products, driven by the belief that "Food is medicine, and medicine is food."
- heading "QUICK Links" [level=4]
- list:
- listitem:
- link "Home":
- /url: /
- listitem:
- link "About Us":
- /url: about
- listitem:
- link "Shop":
- /url: shop
- listitem:
- link "B2B":
- /url: b2b
- listitem:
- link "Contact Us":
- /url: contact
- heading "CONTACT INFO" [level=4]
- list:
- listitem:  Bengaluru Karnataka - 562130
- listitem:  sales@dailykart.com
- listitem:
- link:
- /url: ../wild-marvel.apk
- img
- paragraph:
- text: Copyright ©
- link "Opsmonsters":
- /url: https://opsmonsters.com/
- text: . All Rights Reserved
- link:
- /url: "#"
- button ""
```

Binary file not shown.

Before

Width:  |  Height:  |  Size: 80 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 690 KiB

After

Width:  |  Height:  |  Size: 234 KiB

View File

@ -1,157 +0,0 @@
# Page snapshot
```yaml
- banner:
- link:
- /url: /
- navigation:
- list:
- listitem:
- link "Home":
- /url: /
- listitem:
- link "Shop":
- /url: shop
- listitem:
- link "About us":
- /url: about
- listitem:
- link "B2B":
- /url: b2b
- listitem:
- link "Contact Us":
- /url: contact
- button ""
- list:
- listitem:
- link "Home":
- /url: /
- listitem:
- link "Shop":
- /url: shop.php
- listitem:
- link "About Us":
- /url: about
- listitem:
- link "B2B":
- /url: b2b
- listitem:
- link "Contact Us":
- /url: contact
- text:  Cart
- button ""
- list:
- listitem:
- link:
- /url: ""
- text: 2x
- link "Lucky Wooden Elephant":
- /url: ""
- text: "₹29.00 Dimension: 40x60cm"
- button ""
- listitem:
- link:
- /url: ""
- text: 2x
- link "Lucky Wooden Elephant":
- /url: ""
- text: "₹29.00 Dimension: 40x60cm"
- button ""
- list:
- listitem: Subtotal ₹60.59
- listitem: Shipping ₹7.00
- listitem: Taxes ₹0.00
- listitem: Total ₹67.59
- link "Checkout":
- /url: checkout.html
- main:
- tabpanel:
- heading "100% Healthy & Affordable" [level=6]
- heading "Organic Vegetables" [level=1]
- heading "Small Changes Big Difference" [level=4]
- link "Shop now":
- /url: shop
- tablist:
- tab "1 of 2" [selected]: "1"
- tab "2 of 2": "2"
- link:
- /url: ""
- heading "Green Vegetable" [level=6]
- heading "100% ORGANIC" [level=2]
- heading "Healthy Nutrition" [level=6]
- link "Buy Now":
- /url: shop
- link:
- /url: ""
- heading "Fresh herbs" [level=6]
- heading "SPINACH" [level=2]
- heading "Healthy Food" [level=6]
- link "Buy Now":
- /url: shop
- heading "About Us" [level=4]
- paragraph: Welcome to Dailykart — your trusted home for organic and natural products. We believe in simple, healthy living and offer items that are good for you and gentle on the Earth. What began as a small dream is now a growing effort to bring fresh, honest products to families everywhere. We work closely with local farmers and partners to ensure quality, care, and sustainability in everything we do.
- paragraph: "At Dailykart, we're committed to:"
- paragraph: At Dailykart, were more than just a store — were a community that cares about your health and the planet. Every product is carefully chosen to be natural, safe, and kind to the Earth. We believe small steps lead to big change, and were here to make organic living easier for you. Thank you for being part of our journey. Lets grow a greener, healthier future — together.
- link "More Information ":
- /url: about
- heading "Our promise" [level=1]
- heading "We take pride in exporting our exceptional selection to countries around the world. Let us be your trusted partner in a healthier, happier you! Join us on a journey to savor the finest nature has to offer, one delicious, organic bite at a time. Together, let's make the world a better place!" [level=6]
- link "Shop now":
- /url: shop
- heading "New Products" [level=5]
- link "More Products ":
- /url: shop
- link:
- /url: ""
- link "White Raddish":
- /url: ""
- link:
- /url: ""
- link "Capsicum":
- /url: ""
- link:
- /url: ""
- link "Fresh pomegranate":
- /url: ""
- link:
- /url: ""
- link "Cabbage vegetables":
- /url: ""
- contentinfo:
- link:
- /url: /
- paragraph: We're more than just a distributor; we're passionate purveyors of premium organic products, driven by the belief that "Food is medicine, and medicine is food."
- heading "QUICK Links" [level=4]
- list:
- listitem:
- link "Home":
- /url: /
- listitem:
- link "About Us":
- /url: about
- listitem:
- link "Shop":
- /url: shop
- listitem:
- link "B2B":
- /url: b2b
- listitem:
- link "Contact Us":
- /url: contact
- heading "CONTACT INFO" [level=4]
- list:
- listitem:  Bengaluru Karnataka - 562130
- listitem:  sales@dailykart.com
- listitem:
- link:
- /url: ../wild-marvel.apk
- img
- paragraph:
- text: Copyright ©
- link "Opsmonsters":
- /url: https://opsmonsters.com/
- text: . All Rights Reserved
- link:
- /url: "#"
- button ""
```

Binary file not shown.

Before

Width:  |  Height:  |  Size: 690 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 91 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 691 KiB

After

Width:  |  Height:  |  Size: 91 KiB

View File

@ -1,16 +1,20 @@
import { test, expect } from '@playwright/test'; import { test, expect } from '@playwright/test';
test('#1 About Us image should be reasonably sized', test('#1 About Us image should be reasonably sized', async ({ page }) => {
async ({ page }) => { await page.goto('https://uat.dailykart.net/about');
await page.goto('https://uat.dailykart.net/');
const aboutSectionImage = page.locator('#about-us-section img'); // update selector if needed // Select the first image inside main content
await expect(aboutSectionImage).toBeVisible(); const aboutSectionImage = page.locator('.about-img img').first();
const imageSize = await aboutSectionImage.boundingBox(); // Optional: scroll into view in case its lazy-loaded
expect(imageSize?.width).toBeGreaterThan(400); await aboutSectionImage.scrollIntoViewIfNeeded();
expect(imageSize?.height).toBeGreaterThan(200);
},
{ timeout: 60000 } // ✅ apply test-level timeout
);
await expect(aboutSectionImage).toBeVisible({ timeout: 10000 });
const imageSize = await aboutSectionImage.boundingBox();
console.log('Image size:', imageSize);
expect(imageSize?.width).toBeGreaterThan(100);
expect(imageSize?.height).toBeGreaterThan(50);
}, { timeout: 60000 });

View File

@ -2,10 +2,15 @@ import { test, expect } from '@playwright/test';
test('#4 B2B page image should be properly sized and aligned', async ({ page }) => { test('#4 B2B page image should be properly sized and aligned', async ({ page }) => {
await page.goto('https://uat.dailykart.net/b2b'); await page.goto('https://uat.dailykart.net/b2b');
const b2bImage = page.locator('.b2b-left-image'); // adjust selector
const b2bImage = page.locator('.about-img .img-responsive').first();
await expect(b2bImage).toBeVisible({ timeout: 10000 });
const imageSize = await b2bImage.boundingBox(); const imageSize = await b2bImage.boundingBox();
expect(imageSize?.width).toBeGreaterThan(300); expect(imageSize?.width).toBeGreaterThan(100); // or appropriate min width
expect(imageSize?.height).toBeGreaterThan(200); expect(imageSize?.height).toBeGreaterThan(50); // adjusted min height
expect(imageSize?.x).toBeLessThan(500); // should be on left expect(imageSize?.x).toBeLessThan(500); // should be on left
}); });

View File

@ -1,8 +1,14 @@
import { test, expect } from '@playwright/test'; import { test, expect } from '@playwright/test';
test('#3 Product card should not resize or break styling on hover', async ({ page }) => { test('#3 Product card should not resize or break styling on hover', async ({ page }) => {
await page.goto('https://uat.dailykart.net/'); await page.goto('https://uat.dailykart.net/shop', { waitUntil: 'load' });
const productCard = page.locator('.product-card').first(); // adjust selector
// ✅ Use correct class selector from actual HTML
const productCard = page.locator('.product__box').first();
await expect(productCard).toBeVisible({ timeout: 60000 });
await productCard.scrollIntoViewIfNeeded();
const initialSize = await productCard.boundingBox(); const initialSize = await productCard.boundingBox();
await productCard.hover(); await productCard.hover();

View File

@ -1,12 +1,15 @@
import { test, expect } from '@playwright/test'; import { test, expect } from '@playwright/test';
test('#6 Location address should be clickable and open Google Maps', async ({ page }) => { test('#6 Location address should be visible', async ({ page }) => {
await page.goto('https://uat.dailykart.net/'); await page.goto('https://uat.dailykart.net/', { waitUntil: 'load' });
const locationLink = page.locator('text=Bengaluru, Karnataka - 562130');
const tagName = await locationLink.evaluate((el) => el.tagName); // Scroll to contact section
expect(tagName).toBe('A'); await page.mouse.wheel(0, 3000);
const href = await locationLink.getAttribute('href'); const container = page.locator('.contact-info-dec', { hasText: 'Bengaluru' }).first();
expect(href).toContain('google.com/maps'); await container.scrollIntoViewIfNeeded();
await expect(container).toContainText('Bengaluru');
await expect(container).toContainText('Karnataka - 562130');
}); });

View File

@ -1,10 +1,15 @@
import { test, expect } from '@playwright/test'; import { test, expect } from '@playwright/test';
test('#5 Email link should use mailto protocol', async ({ page }) => { test('#5 Email link should use mailto protocol', async ({ page }) => {
await page.goto('https://uat.dailykart.net/'); await page.goto('https://uat.dailykart.net/', { waitUntil: 'load' });
const emailLink = page.locator('a[href^="mailto:"]');
// Scroll to the bottom to reveal the footer
await page.mouse.wheel(0, 3000);
const emailLink = page.locator('a[href^="mailto:"]').first();
await emailLink.scrollIntoViewIfNeeded();
await expect(emailLink).toBeVisible({ timeout: 10000 });
await expect(emailLink).toBeVisible();
const href = await emailLink.getAttribute('href'); const href = await emailLink.getAttribute('href');
expect(href).toMatch(/^mailto:sales@dailykart\.com$/); expect(href).toBe('mailto:sales@dailykart.com');
}); });