diff --git a/cypress/support/commands.js b/cypress/support/commands.js
index <HASH>..<HASH> 100644
--- a/cypress/support/commands.js
+++ b/cypress/support/commands.js
@@ -100,7 +100,7 @@ Cypress.Commands.add('navigateToStory', (kind, name) => {
   if (name !== 'page') {
     // Section might be collapsed
     cy.get(`#${kindId}`).then(($item) => {
-      if ($item.attribute('aria-expanded') === 'false') $item.click();
+      if ($item.attr('aria-expanded') === 'false') $item.click();
     });
   }
   cy.get(storyLinkId).click();
Try with the 'attr' method.