Skip to content

Commit

Permalink
chore(vue): fix Example 19 flaky E2E test (#1785)
Browse files Browse the repository at this point in the history
* chore(vue): fix Example 19 flaky E2E test
  • Loading branch information
ghiscoding authored Dec 21, 2024
1 parent ecee0fb commit 24cead9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions demos/vue/src/components/Example19.vue
Original file line number Diff line number Diff line change
Expand Up @@ -268,8 +268,8 @@ function simulateServerAsyncCall(item: any) {
const itemDetail = item;
// let's add some extra properties to our item for a better async simulation
itemDetail.assignee = randomNames[randomNumber(0, 10)];
itemDetail.reporter = randomNames[randomNumber(0, 10)];
itemDetail.assignee = randomNames[randomNumber(0, 9)];
itemDetail.reporter = randomNames[randomNumber(0, 9)];
// resolve the data after delay specified
resolve(itemDetail);
Expand Down
4 changes: 3 additions & 1 deletion demos/vue/test/cypress/e2e/example19.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ describe('Example 19 - Row Detail View', () => {
cy.get('@detailContainer')
.find('input')
.invoke('val')
.then((text) => (assignee = text as string));
.then((text) => (assignee = `${text || ''}`));

cy.wait(10);

cy.get('@detailContainer')
.find('[data-test=assignee-btn]')
Expand Down

0 comments on commit 24cead9

Please sign in to comment.