Skip to content

Commit

Permalink
Remove test for now
Browse files Browse the repository at this point in the history
  • Loading branch information
w3bdesign committed Feb 27, 2023
1 parent b6c20ad commit ffa8ae9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
12 changes: 1 addition & 11 deletions src/tests/Produkter/Produkter.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,5 @@ test.describe('Produkter', () => {
await expect(page).toHaveURL(/.*simple/);
});

test('Test at vi kan legge til varen i handlekurven', async ({ page }) => {
await page.getByRole('link', { name: 'Test simple' }).first().click();

await page.getByRole('button', { name: 'KJØP' }).click();

await page.screenshot({ path: 'handlekurv.png' });

// Expects that we can see the cart count change

await expect(page.locator('#header').getByText('1')).toHaveText('1');
});

});
3 changes: 1 addition & 2 deletions src/utils/apollo/ApolloClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,7 @@ const client = new ApolloClient({
link: middleware.concat(
afterware.concat(
createHttpLink({
//uri: process.env.NEXT_PUBLIC_GRAPHQL_URL,
uri: "https://swewoocommerce.dfweb.no/graphql",
uri: process.env.NEXT_PUBLIC_GRAPHQL_URL,
fetch,
})
)
Expand Down

0 comments on commit ffa8ae9

Please sign in to comment.