File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ import { expect , test } from '@playwright/test' ;
2+
3+ test . beforeEach ( async ( { page } ) => {
4+ await page . goto ( 'http://localhost:3000' ) ;
5+ } ) ;
6+
7+ test . describe ( 'Home page tests' , ( ) => {
8+ test ( 'should show the title' , async ( { page } ) => {
9+ await expect (
10+ page . getByRole ( 'heading' , { name : 'React Developer Community Kenya' } )
11+ ) . toBeVisible ( ) ;
12+ } ) ;
13+
14+ test ( "should show 'Join Community' button" , async ( { page } ) => {
15+ await expect (
16+ page . getByRole ( 'link' , { name : 'Join Community' } )
17+ ) . toBeVisible ( ) ;
18+ } ) ;
19+
20+ test ( 'should show About Us section' , async ( { page } ) => {
21+ await expect ( page . getByRole ( 'heading' , { name : 'About Us' } ) ) . toBeVisible ( ) ;
22+ } ) ;
23+
24+ test ( 'should show Mission Pillars section' , async ( { page } ) => {
25+ await expect (
26+ page . getByRole ( 'heading' , { name : 'Our Mission Pillars' } )
27+ ) . toBeVisible ( ) ;
28+ } ) ;
29+
30+ test ( 'should show Events section' , async ( { page } ) => {
31+ await expect ( page . getByRole ( 'heading' , { name : 'Events' } ) ) . toBeVisible ( ) ;
32+ } ) ;
33+
34+ test ( 'should show Contact Us section' , async ( { page } ) => {
35+ await expect (
36+ page . getByRole ( 'heading' , { name : 'Contact Us' } )
37+ ) . toBeVisible ( ) ;
38+ } ) ;
39+ } ) ;
Original file line number Diff line number Diff line change 1- import React from 'react' ;
2-
31export default function AboutUs ( ) {
42 return (
53 < section
64 id = "about-us"
75 className = "flex flex-col max-w-2xl justify-center items-center self-center space-y-4 px-4"
86 >
9- < p className = "text-3xl md:text-6xl tracking-wide md:font-light " >
10- ABOUT US
11- </ p >
7+ < h2 className = "text-3xl md:text-6xl tracking-wide md:font-light uppercase " >
8+ About Us
9+ </ h2 >
1210 < p className = "hidden md:inline-block text-4xl font-bold " >
1311 Empowering great talent
1412 </ p >
Original file line number Diff line number Diff line change 11import Link from 'next/link' ;
2- import React from 'react' ;
32import type { EventData } from '../../types/index' ;
43import DisplayRC from './DisplayRC' ;
54
@@ -61,9 +60,9 @@ export default function Events() {
6160 id = "events"
6261 className = "relative flex flex-col items-center justify-center w-full py-16 bg-white md:py-20 gap-y-2 md:gap-y-5"
6362 >
64- < p className = "flex items-center justify-center font-light tracking-wide" >
63+ < h2 className = "flex items-center justify-center font-light tracking-wide" >
6564 Events
66- </ p >
65+ </ h2 >
6766 < h2 className = "pb-2 text-2xl font-bold md:pb-10" > Community Events</ h2 >
6867 < div className = "grid grid-cols-1 gap-y-4 md:gap-y-10 gap-x-6 sm:grid-cols-2 lg:grid-cols-3 2xl:grid-cols-4 xl:gap-x-8 md:grid-cols-2 bg-[#09AFC6] px-4 md:px-10 lg:px-16 py-8 md:py-14 xl:py-16" >
6968 { events . map ( ( event ) => (
Original file line number Diff line number Diff line change 1- import React from 'react' ;
2- import Pillar from '../Pillar/Pillar' ;
31import Image from 'next/image' ;
2+ import Pillar from '../Pillar/Pillar' ;
43
54export default function MissionPillars ( ) {
65 return (
76 < section className = "flex flex-col w-full md:justify-center items-center bg-white md:bg-[#CEEDF4] py-12 space-y-10" >
8- < p className = "md:uppercase font-bold md:font-light text-2xl md:text-5xl" >
7+ < h2 className = "md:uppercase font-bold md:font-light text-2xl md:text-5xl" >
98 Our Mission Pillars
10- </ p >
9+ </ h2 >
1110 < div className = "flex flex-col md:flex-row md:items-center md:justify-center w-full px-6 space-y-4 md:space-x-6" >
1211 < div className = "flex" >
1312 < Pillar count = "01" label = "Mentorship" />
Original file line number Diff line number Diff line change 11import Head from 'next/head' ;
22import Image from 'next/image' ;
33import logo from '../../public/reactdevske.svg' ;
4- import Events from '../components/Events/Events' ;
5- import AboutUs from '../components/about-us/about-us' ;
4+ import AboutUs from '../components/AboutUs/AboutUs' ;
65import ContactUs from '../components/ContactUs' ;
6+ import Events from '../components/Events/Events' ;
77import MissionPillars from '../components/MissionPillars/MissionPillars' ;
88
99export default function Home ( ) {
You can’t perform that action at this time.
0 commit comments