Skip to content

Commit

Permalink
Merge pull request #44 from shopcanal/alex-whitaker.faq-content
Browse files Browse the repository at this point in the history
test: update FAQ test with new FAQ content
  • Loading branch information
alex-whitaker committed Mar 8, 2022
2 parents 7514034 + 9a544aa commit 4153b2f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/homepage-faq.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ const FAQ_TEXT = [
'How do you make money?',
'How does Canal make money?',
'When will I be able to use Canal?',
'How do Storefronts handle shipping?',
'What is the Canal Network?',
"How do I access Canal's network of brands?",
];

// The element that has "Canal helps D2C brands" within it and is a collapsible element
Expand All @@ -26,7 +27,7 @@ test('Has all FAQs', async ({ page }) => {

// Captures the parent of the dropdown containers that have inside of them button + basic collapsible elements
for (const item of FAQ_TEXT) {
const selector = `button:has(:text('${item}'))`;
const selector = `button:has(:text("${item}"))`;
const faq = await page.waitForSelector(selector, {
state: 'attached',
});
Expand Down

0 comments on commit 4153b2f

Please sign in to comment.