Skip to content

Commit 0c3a43c

Browse files
committed
🔧 minor improvements
1 parent 82d15c7 commit 0c3a43c

File tree

6 files changed

+18
-25
lines changed

6 files changed

+18
-25
lines changed

pages/blog/new.tsx

+3-9
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,13 @@
1+
import React from 'react';
2+
13
import { Formik } from 'formik';
2-
import { GetServerSideProps, NextPage } from 'next';
4+
import { NextPage } from 'next';
35
import { useRouter } from 'next/router';
4-
import React from 'react';
56
import PostForm from '../../src/components/Blog/PostForm';
6-
import { useAuth } from '../../src/components/contexts/AuthContext';
77
import { useToasts } from '../../src/components/contexts/ToastContext';
88
import { createPost } from '../../src/db/posts';
99
import Head from 'next/head';
1010

11-
export const getServerSideProps: GetServerSideProps = async () => {
12-
return {
13-
props: {},
14-
};
15-
};
16-
1711
const New: NextPage = () => {
1812
const { addToast } = useToasts();
1913
const router = useRouter();

pages/hitchhikers/index.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ const Index: NextPage<{ page: number }> = (props) => {
9393
<Table.HeadCell>
9494
<div className="flex justify-between">Username and Stats</div>
9595
</Table.HeadCell>
96-
9796
<Table.HeadCell>Member since</Table.HeadCell>
9897
</Table.Head>
9998
<Table.Body className="divide-y">

playwright.config.ts

+12-12
Original file line numberDiff line numberDiff line change
@@ -51,19 +51,19 @@ const config: PlaywrightTestConfig = {
5151
},
5252
},
5353

54-
{
55-
name: 'firefox',
56-
use: {
57-
...devices['Desktop Firefox'],
58-
},
59-
},
54+
// {
55+
// name: 'firefox',
56+
// use: {
57+
// ...devices['Desktop Firefox'],
58+
// },
59+
// },
6060

61-
{
62-
name: 'webkit',
63-
use: {
64-
...devices['Desktop Safari'],
65-
},
66-
},
61+
// {
62+
// name: 'webkit',
63+
// use: {
64+
// ...devices['Desktop Safari'],
65+
// },
66+
// },
6767

6868
/* Test against mobile viewports. */
6969
// {

src/components/HitchhikingTrip.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ export function HitchhikingTrip({
102102
{trip.destination?.sanitized_address}
103103
</h5>
104104
</div>
105-
<article className="">
105+
<article>
106106
<div
107107
className={`h-56 sm:h-64 xl:h-76 pb-4 ${
108108
ridesWithPhoto.length === 0 && 'hidden'

tests/hitchhikers/send_message.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ test.beforeEach(async ({ page }) => {
44
// Runs before each test and signs in each page.
55
await page.goto('https://localhost:3000/login');
66
await page.locator('input[name="email"]').fill('[email protected]');
7-
await page.locator('input[name="password"]').fill('password');
7+
await page.locator('input[name="password"]').fill('opujxbd4UZcvZMVP4v');
88
await page.getByText('Sign in').click();
99
});
1010

tests/login.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { test, expect } from '@playwright/test';
22

33
test('Test existence', async ({ page }) => {
4-
await page.goto('http://localhost:3002/login');
4+
await page.goto('http://localhost:3000/login');
55
// Expect a title "to contain" a substring.
66
await expect(page).toHaveTitle(/Hitchlog - Login/);
77
await page.getByText('Sign up').click();

0 commit comments

Comments
 (0)