Skip to content

Commit

Permalink
rename test
Browse files Browse the repository at this point in the history
  • Loading branch information
sharma-shray authored Aug 5, 2024
1 parent 106290b commit 2a19433
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions enatega-multivendor-web/__tests__/tests/shop.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import { test, expect } from '@playwright/test';



test('check specific elements exist', async ({ page }) => {
await page.goto('http://localhost:3000/#/restaurant/pizza-shop');

Expand Down Expand Up @@ -56,7 +54,7 @@ test('check specific elements exist', async ({ page }) => {
// await expect(page.locator(addButtonSelector).nth(4)).toBeVisible();
});

test('Check existence of elementdds', async ({ page }) => {
test('Check existence of elements2', async ({ page }) => {
await page.goto('http://localhost:3000/#/restaurant/pizza-shop');

// Check for Fajita Chicken
Expand Down Expand Up @@ -109,7 +107,6 @@ test('check specific elements exist', async ({ page }) => {
await expect(page.locator('div:nth-child(7) > .MuiPaper-root > div > p').first()).toBeVisible();
await expect(page.locator('div:nth-child(7) > .MuiPaper-root > div > p > .MuiTypography-root').first()).toBeVisible();


// Check for American Hot
await expect(page.getByText('American Hot').first()).toBeVisible();
await expect(page.getByText('Pepperoni, Jalapenos and Extra Cheese on a Pizza Sauce Base', { exact: true })).toBeVisible();
Expand Down

0 comments on commit 2a19433

Please sign in to comment.