-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1097 from chaynHQ/develop
Merge Develop onto Main
- Loading branch information
Showing
42 changed files
with
1,255 additions
and
153 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"presets": ["next/babel", "@babel/preset-typescript"], | ||
"plugins": ["istanbul"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"extends": "@istanbuljs/nyc-config-babel", | ||
"reporter": ["text-summary", "html"], | ||
"include": ["pages/**/*.ts", "pages/**/*.tsx", "components/**/*.ts", "components/**/*.tsx"], | ||
"instrument": true, | ||
"all": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
{ | ||
"core": [ | ||
{ | ||
"name": "Hera Hussain", | ||
"title": "Founder and CEO of Chayn", | ||
"languages": "English, Urdu, Punjabi", | ||
"image": { | ||
"alt": "hera2", | ||
"src": "hera2" | ||
}, | ||
"description": "Hera Hussain is the founder and CEO of Chayn. She has years of experience supporting survivors. She’s our Safeguarding Lead. Hera was raised in Pakistan and came to the UK to study Psychology and Economics. Hera was on the Forbes 30 Under 30 and MIT Technology Review’s Innovators Under 35 list, and was awarded the British Empire Medal by the Queen.", | ||
"closed": false | ||
}, | ||
{ | ||
"name": "Francesca Jarvis", | ||
"title": "Survivor Services Lead", | ||
"languages": "English", | ||
"image": { | ||
"alt": "Picture of Francesca", | ||
"src": "img-20220609-wa0009" | ||
}, | ||
"description": "Francesca grew up in the UK and lives in London. Before joining Chayn as the Survivor Services Lead for our Bloom project, Francesca worked in frontline support services for survivors of sexual violence and youth work. She has a lot of experience supporting survivors around and through the criminal legal system, managing teams of frontline workers, and developing ways of working.", | ||
"closed": false | ||
}, | ||
{ | ||
"name": "Carolina Cal", | ||
"title": "Survivor Services Facilitator", | ||
"languages": "English, Portuguese, Spanish", | ||
"image": { | ||
"alt": "Carolina is a white women with long brown hair wearing a black top with leaves on it. She stands in front of a large green bush that fills the entire frame.", | ||
"src": "carolina-headshot" | ||
}, | ||
"description": "Carolina is from São Paulo in Brazil. She worked for Latin American Women’s Rights organisations in community engagement before joining Chayn and has extensive experience in facilitating wellbeing activities and engaging migrant women in conversations surrounding notions of migration, identity, gendered violence & intersectionality. Carolina has a MA in Applied Theatre from Central School of Speech & Drama and is passionate about using the arts to co-create social change with women from the Global Majority.", | ||
"closed": false | ||
}, | ||
{ | ||
"name": "Abbie Tshola", | ||
"title": "Survivor Services Administrator", | ||
"languages": "English, French", | ||
"image": { | ||
"alt": "Abbie is a Black woman taking a selfie. She is wearing a black top and has black hair. She is standing in front of a brick wall with a clock on it.", | ||
"src": "abbie-headshot" | ||
}, | ||
"description": "Abbie is from London, UK. Having recently graduated from the London School of Economics with an MSc Political Sociology degree, Abbie has considerable experience researching higher education through a decolonial and black feminist lens and has advocated for policies that improves the experience of marginalised students. Abbie also enjoys exploring UX Design and is currently building a portfolio which centres black feminist values in digital spaces.", | ||
"closed": false | ||
} | ||
], | ||
"supporting": [ | ||
{ | ||
"name": "Paz Romero", | ||
"title": "Bloom video presenter, chat team", | ||
"languages": "English, Spanish", | ||
"image": { | ||
"alt": "Picture of Paz", | ||
"src": "paz2" | ||
}, | ||
"description": "Paz Romero is a Latina, queer woman from Rio de la Plata. She was born south of Buenos Aires, Argentina and she’s a grassroots activist for women and sexual diversities rights. She coordinated a regional feminist organization; she’s a translator, proofreader, QC and project manager. Paz has provided us a lot of project support at Chayn, facilitated some of our Spanish-language Bloom videos, and is one of our 1-2-1 chat facilitators.", | ||
"closed": true | ||
} | ||
] | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,121 @@ | ||
const HOME_PAGE_URL = '/'; | ||
|
||
describe('Home page should display', () => { | ||
before(() => { | ||
cy.cleanUpTestState(); | ||
}); | ||
|
||
beforeEach(() => { | ||
cy.visit(HOME_PAGE_URL); | ||
}); | ||
|
||
it('join us section', () => { | ||
cy.get('h1').should('contain', 'Join us on your healing journey'); | ||
cy.get('p').should( | ||
'contain', | ||
'Bloom is here for you to learn, heal and grow towards a confident future.', | ||
); | ||
cy.checkImage( | ||
'Person sitting crossed legged with symbols floating around such as a video icon, flower, message icon and a persons head with a flower', | ||
'landing_page_illustration', | ||
); | ||
cy.checkLink('/auth/register', 'Get started'); | ||
}); | ||
|
||
it('our free services section', () => { | ||
cy.get('h2').should('contain', 'Our free services'); | ||
|
||
cy.checkImage('coursesIcon', 'icon_courses'); | ||
cy.get('h3').should('contain', 'Online video courses'); | ||
cy.checkLink('/courses', ''); | ||
|
||
cy.checkImage('chatIcon', 'icon_chat'); | ||
cy.get('h3').should('contain', '1-to-1 Messaging'); | ||
cy.checkLink('/chat', ''); | ||
|
||
cy.checkImage('activityIcon', 'icon_activities'); | ||
cy.get('h3').should('contain', 'Reflective activities'); | ||
cy.checkLink('/activities', ''); | ||
|
||
cy.checkImage('groundingIcon', 'icon_grounding'); | ||
cy.get('h3').should('contain', 'Guided grounding activities'); | ||
cy.checkLink('/grounding', ''); | ||
|
||
cy.checkImage('notesIcon', 'icon_notes'); | ||
cy.get('h3').should('contain', 'Notes: Whatsapp messages from us'); | ||
cy.checkLink('/subscription/whatsapp', ''); | ||
|
||
cy.checkLink('/auth/register', 'Get started'); | ||
}); | ||
|
||
it('why bloom section', () => { | ||
cy.get('h2').should('contain', 'Why Bloom?'); | ||
cy.get('p').should('contain', 'Bloom is here for you, whoever and wherever you are.'); | ||
|
||
cy.checkImage('pinkHeartWhiteBackground', 'pinkheartwhitebackground'); | ||
cy.get('h3').should('contain', 'Free and Anonymous'); | ||
|
||
cy.checkImage('pinkPlayPauseWhiteBackground', 'pinkplaypausewhitebackground'); | ||
cy.get('h3').should('contain', 'Explore at your own pace'); | ||
|
||
cy.checkImage('pinkGlobeWhiteBackground', 'pinkglobewhitebackground'); | ||
cy.get('h3').should('contain', 'Multilingual'); | ||
}); | ||
|
||
it('our bloom team section', () => { | ||
cy.get('h2').should('contain', 'Our Bloom Team'); | ||
|
||
cy.checkImage('spanish_team', 'spanish_team'); | ||
cy.get('h3').should('contain', 'Spanish'); | ||
|
||
cy.checkImage('hindi_team', 'hindi_team'); | ||
cy.get('h3').should('contain', 'Hindi'); | ||
|
||
cy.checkImage('french_team', 'french_team'); | ||
cy.get('h3').should('contain', 'French'); | ||
|
||
cy.checkImage('english_team', 'english_team'); | ||
cy.get('h3').should('contain', 'English'); | ||
|
||
cy.checkImage('portuguese_team', 'portuguese_team'); | ||
cy.get('h3').should('contain', 'Portuguese'); | ||
|
||
cy.checkImage('bloom_german', 'bloom_german-presenters'); | ||
cy.get('h3').should('contain', 'German'); | ||
|
||
cy.checkLink('/meet-the-team', 'Meet the team'); | ||
}); | ||
|
||
it('our themes section', () => { | ||
cy.get('h2').should('contain', 'Our themes'); | ||
cy.checkImage('leaves with fire', 'leaf_mix_fire'); | ||
|
||
const themes = [ | ||
'Guilt and Shame', | ||
'Positive coping mechanism', | ||
'Myths of the Patriarchy', | ||
'Sex after assault', | ||
'Emotional boundaries', | ||
'Image-based abuse', | ||
]; | ||
themes.forEach((theme) => { | ||
cy.get('p').contains(theme).parents('a[href="/courses"]').should('exist'); | ||
}); | ||
|
||
cy.checkLink('/auth/register', 'Get started'); | ||
}); | ||
|
||
it('testimonial section', () => { | ||
cy.checkImage('blue_person_tea', 'blue_person_with_tea'); | ||
cy.get('blockquote').should( | ||
'contain', | ||
'It has brought so much clarity to my past experiences, putting words, labels, researched proof to what I didn’t know how to explain or process, I just knew the feelings.', | ||
); | ||
|
||
cy.checkImage('Illustration of a person sitting, holding a tea', 'illustration_person4_peach'); | ||
cy.get('blockquote').should( | ||
'contain', | ||
`Bloom has been a great experience for me. The course has made me reflect a lot on what it means to "work on yourself" and how that looks like. And through Bloom, I've realized that working on yourself is similar to school or hobbies - it takes commitment, time, and studying. This course is anonymous, accessible, and time sensitive - I think it gives grace to all participants who need that time, space, and encouragement to get through the sessions.`, | ||
); | ||
}); | ||
}); |
Oops, something went wrong.