Skip to content

Commit 918ce00

Browse files
committed
Merge branch 'add-headings-tag-generator-steps-911' of https://github.com/nrrao/website into add-headings-tag-generator-steps-911
2 parents 57f8a07 + f094675 commit 918ce00

File tree

6 files changed

+22223
-51
lines changed

6 files changed

+22223
-51
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)