Skip to content

Commit

Permalink
Fix load testing flow
Browse files Browse the repository at this point in the history
  • Loading branch information
mesudip committed Nov 27, 2024
1 parent e9aab05 commit 582b797
Show file tree
Hide file tree
Showing 3 changed files with 12,300 additions and 24 deletions.
5 changes: 3 additions & 2 deletions integration_test/load_test/flows.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@ async function visitPollFlow(page) {
await page.waitForLoadState('networkidle');

// List all cards with the data-testid attribute 'poll-card-xxx'
const pollCards = await page.$$('[data-testid^="poll-card-"]'); // Select all elements starting with 'poll-card-'
const pollCards = await page.locator('[data-testid^="poll-card-"]').all() // Select all elements starting with 'poll-card-'

if (pollCards.length === 0) {

if (pollCards.length <= 0) {
console.log("No poll cards found!");
return;
}
Expand Down
Loading

0 comments on commit 582b797

Please sign in to comment.