Skip to content

Commit

Permalink
Remove redundant code
Browse files Browse the repository at this point in the history
  • Loading branch information
bc-azvierieva committed Oct 3, 2024
1 parent 6bc570e commit 17283d0
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 54 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,6 @@ export const getCustomerOrders = cache(
customerId,
fetchOptions: { cache: 'no-store' },
});
console.log('Customer Id is:', customerId, response);

const orders = response.data.customer?.orders;

Expand Down
1 change: 0 additions & 1 deletion core/app/[locale]/(default)/account/(tabs)/orders/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ export default async function OrdersPage({ searchParams }: Props) {
...(after && { after }),
...(before && { before }),
});
console.log(customerOrdersDetails);

if (!customerOrdersDetails) {
notFound();
Expand Down
45 changes: 0 additions & 45 deletions core/tests/fixtures/utils/account/get.ts

This file was deleted.

6 changes: 0 additions & 6 deletions core/tests/fixtures/utils/product/product.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
import { type Page } from '@playwright/test';

export interface ProductVariant {
id: number;
product_id: number;
price: number;
}

export class Product {
constructor(
private readonly page: Page,
Expand Down
2 changes: 1 addition & 1 deletion core/tests/ui/e2e/account.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ test('Account access is restricted for guest users', async ({ page }) => {
await expect(page.getByRole('heading', { name: 'Log in' })).toBeVisible();
});

test('My Account tabs are displayed and clickable', async ({ page, account, product }) => {
test('My Account tabs are displayed and clickable', async ({ page, account }) => {
const customer = await account.create();

await customer.login();
Expand Down

0 comments on commit 17283d0

Please sign in to comment.