Skip to content

Commit

Permalink
fixed cypress test
Browse files Browse the repository at this point in the history
  • Loading branch information
Felix Ruf committed Jan 18, 2024
1 parent 5985e38 commit c57e997
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions tests/e2e/cypress/e2e/Dashboard.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,8 @@ describe('Test Dashboard View', () => {
.find('span')
.contains('Afterwork')
.parent()
.parent()
.find('div')
.eq(1)
.eq(0)
.find('div')
.eq(1)
.contains('span', '17')
Expand Down Expand Up @@ -240,9 +239,8 @@ describe('Test Dashboard View', () => {
.find('span')
.contains('Afterwork')
.parent()
.parent()
.find('div')
.eq(4)
.eq(3)
.children()
.should('have.length', 0);

Expand All @@ -258,9 +256,8 @@ describe('Test Dashboard View', () => {
.find('span')
.contains('Afterwork')
.parent()
.parent()
.find('div')
.eq(4)
.eq(3)
.click();

// confirm event has been joined
Expand All @@ -275,9 +272,8 @@ describe('Test Dashboard View', () => {
.find('span')
.contains('Afterwork')
.parent()
.parent()
.find('div')
.eq(4)
.eq(3)
.children()
.should('have.length', 1);

Expand All @@ -293,9 +289,8 @@ describe('Test Dashboard View', () => {
.find('span')
.contains('Afterwork')
.parent()
.parent()
.find('div')
.eq(4)
.eq(3)
.click();

// confirm event has been left
Expand All @@ -310,9 +305,8 @@ describe('Test Dashboard View', () => {
.find('span')
.contains('Afterwork')
.parent()
.parent()
.find('div')
.eq(4)
.eq(3)
.children()
.should('have.length', 0);
});
Expand Down

0 comments on commit c57e997

Please sign in to comment.