Skip to content

Commit

Permalink
fix feed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ariellalgilmore committed Aug 28, 2023
1 parent 76492cb commit 97e0565
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion content/patterns/feed/examples/feed.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ <h2 id="ex_label">Example</h2>
<div role="separator" id="ex_start_sep" aria-labelledby="ex_start_sep ex_label" aria-label="Start of"></div>
<div id="ex1">
<p>The example feed experience below is presented in an iframe in order not to obstruct from the rest of the content of the page. </p>
<iframe src="./feed-display.html" height="500" title="Feed example" style="width: 100%"></iframe>
<iframe id="feed_frame" src="./feed-display.html" height="500" title="Feed example" style="width: 100%"></iframe>
</div>
<div role="separator" id="ex_end_sep" aria-labelledby="ex_end_sep ex_label" aria-label="End of"></div>
</section>
Expand Down
4 changes: 2 additions & 2 deletions test/tests/feed_feed.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const assertAriaDescribedby = require('../util/assertAriaDescribedby');
const exampleFile = 'content/patterns/feed/examples/feed.html';

const ex = {
feedFrameSelector: '#ex1 iframe',
frameID: 'feed_frame',
feedSelector: '[role="feed"]',
articleSelector: '[role="article"]',
timeToLoad10Articles: 2500,
Expand All @@ -19,7 +19,7 @@ const ex = {
};

const navigateToFeed = async function (t) {
await t.context.session.findElement(By.css(ex.feedFrameSelector)).click();
await t.context.session.switchTo().frame(ex.frameID);
};

const waitForArticlesToLoad = async function (t) {
Expand Down

0 comments on commit 97e0565

Please sign in to comment.