Skip to content

Commit ce2a308

Browse files
authored
Merge pull request #921 from civictechindex/confetti
Confetti
2 parents 84cc707 + bffb928 commit ce2a308

File tree

5 files changed

+22222
-50
lines changed

5 files changed

+22222
-50
lines changed

cypress/integration/pages/faq.spec.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
const SEARCH = 'organization';
22
const Q1 = 'Can I add multiple projects';
3-
const Q2 = "Our organization doesn't have a parent organization";
3+
const Q2 = 'Can I change the organization my project is listed under';
44
const A1 = 'Yes, Please follow the link to add multiple projects.';
5-
const A2 =
6-
'You can still be a part of Civic tech index, even if your organization is unaffiliated';
5+
const A2 = 'Yes, you can change the organization of your project.';
76

87
describe('FAQ Page (using API)', () => {
98
it('gets faq by search', () => {
@@ -17,7 +16,7 @@ describe('FAQ Page (using API)', () => {
1716
.first()
1817
.contains(Q2)
1918
.click({ force: true });
20-
cy.get('[data-cy=faq-answer]').first().should('have.text', A2);
19+
cy.get('[data-cy=faq-answer]').first().should('contain', A2);
2120
});
2221
});
2322

@@ -39,6 +38,6 @@ describe('FAQ Page (using fixture)', () => {
3938
.first()
4039
.contains(Q1)
4140
.click({ force: true });
42-
cy.get('[data-cy=faq-answer]').first().should('have.text', A1);
41+
cy.get('[data-cy=faq-answer]').first().should('contain', A1);
4342
});
4443
});

0 commit comments

Comments
 (0)