Commit 0c3a43c 1 parent 82d15c7 commit 0c3a43c Copy full SHA for 0c3a43c
File tree 6 files changed +18
-25
lines changed
6 files changed +18
-25
lines changed Original file line number Diff line number Diff line change
1
+ import React from 'react' ;
2
+
1
3
import { Formik } from 'formik' ;
2
- import { GetServerSideProps , NextPage } from 'next' ;
4
+ import { NextPage } from 'next' ;
3
5
import { useRouter } from 'next/router' ;
4
- import React from 'react' ;
5
6
import PostForm from '../../src/components/Blog/PostForm' ;
6
- import { useAuth } from '../../src/components/contexts/AuthContext' ;
7
7
import { useToasts } from '../../src/components/contexts/ToastContext' ;
8
8
import { createPost } from '../../src/db/posts' ;
9
9
import Head from 'next/head' ;
10
10
11
- export const getServerSideProps : GetServerSideProps = async ( ) => {
12
- return {
13
- props : { } ,
14
- } ;
15
- } ;
16
-
17
11
const New : NextPage = ( ) => {
18
12
const { addToast } = useToasts ( ) ;
19
13
const router = useRouter ( ) ;
Original file line number Diff line number Diff line change @@ -93,7 +93,6 @@ const Index: NextPage<{ page: number }> = (props) => {
93
93
< Table . HeadCell >
94
94
< div className = "flex justify-between" > Username and Stats</ div >
95
95
</ Table . HeadCell >
96
-
97
96
< Table . HeadCell > Member since</ Table . HeadCell >
98
97
</ Table . Head >
99
98
< Table . Body className = "divide-y" >
Original file line number Diff line number Diff line change @@ -51,19 +51,19 @@ const config: PlaywrightTestConfig = {
51
51
} ,
52
52
} ,
53
53
54
- {
55
- name : 'firefox' ,
56
- use : {
57
- ...devices [ 'Desktop Firefox' ] ,
58
- } ,
59
- } ,
54
+ // {
55
+ // name: 'firefox',
56
+ // use: {
57
+ // ...devices['Desktop Firefox'],
58
+ // },
59
+ // },
60
60
61
- {
62
- name : 'webkit' ,
63
- use : {
64
- ...devices [ 'Desktop Safari' ] ,
65
- } ,
66
- } ,
61
+ // {
62
+ // name: 'webkit',
63
+ // use: {
64
+ // ...devices['Desktop Safari'],
65
+ // },
66
+ // },
67
67
68
68
/* Test against mobile viewports. */
69
69
// {
Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ export function HitchhikingTrip({
102
102
{ trip . destination ?. sanitized_address }
103
103
</ h5 >
104
104
</ div >
105
- < article className = "" >
105
+ < article >
106
106
< div
107
107
className = { `h-56 sm:h-64 xl:h-76 pb-4 ${
108
108
ridesWithPhoto . length === 0 && 'hidden'
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ test.beforeEach(async ({ page }) => {
4
4
// Runs before each test and signs in each page.
5
5
await page . goto ( 'https://localhost:3000/login' ) ;
6
6
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 ' ) ;
8
8
await page . getByText ( 'Sign in' ) . click ( ) ;
9
9
} ) ;
10
10
Original file line number Diff line number Diff line change 1
1
import { test , expect } from '@playwright/test' ;
2
2
3
3
test ( 'Test existence' , async ( { page } ) => {
4
- await page . goto ( 'http://localhost:3002 /login' ) ;
4
+ await page . goto ( 'http://localhost:3000 /login' ) ;
5
5
// Expect a title "to contain" a substring.
6
6
await expect ( page ) . toHaveTitle ( / H i t c h l o g - L o g i n / ) ;
7
7
await page . getByText ( 'Sign up' ) . click ( ) ;
You can’t perform that action at this time.
0 commit comments