Skip to content
This repository was archived by the owner on Jun 1, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/app/examples/grid-rowdetail.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -292,8 +292,8 @@ export class GridRowDetailComponent implements OnDestroy, OnInit {
const itemDetail = item;

// let's add some extra properties to our item for a better async simulation
itemDetail.assignee = randomNames[this.randomNumber(0, 10)];
itemDetail.reporter = randomNames[this.randomNumber(0, 10)];
itemDetail.assignee = randomNames[this.randomNumber(0, 9)] || '';
itemDetail.reporter = randomNames[this.randomNumber(0, 9)] || '';

// resolve the data after delay specified
resolve(itemDetail);
Expand Down
6 changes: 4 additions & 2 deletions test/cypress/e2e/example21.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,16 @@ describe('Example 21 - 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]')
.click()
.then(() => {
if (assignee === '') {
expect(alertStub.getCall(0)).to.be.calledWith(`No one is assigned to this task.`);
expect(alertStub.getCall(0)).to.be.calledWith('No one is assigned to this task.');
} else {
expect(alertStub.getCall(0)).to.be.calledWith(`Assignee on this task is: ${assignee.toUpperCase()}`);
}
Expand Down
Loading