Skip to content

Commit

Permalink
fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuadkitenge committed Aug 10, 2023
1 parent aeafa8a commit 32c5c43
Show file tree
Hide file tree
Showing 6 changed files with 261 additions and 250 deletions.
4 changes: 2 additions & 2 deletions cypress/integration/table/sessions.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ describe('Sessions', () => {
});

it('sends a patch request when a user edits a session', () => {
cy.findAllByTestId('edit-session-button').first().click();
cy.findByRole('button', { name: 'edit Session 1 session' }).click();
cy.findByLabelText('Name *').should(($input) => {
const value = $input.val();
expect(value).to.equal('Session 1');
Expand Down Expand Up @@ -155,7 +155,7 @@ describe('Sessions', () => {
});

it('sends a delete request when a user deletes a session', () => {
cy.findAllByTestId('delete-session-button').first().click();
cy.findByRole('button', { name: 'delete Session 1 session' }).click();
cy.findByText('Delete Session');

cy.findAllByTestId('delete-session-name').should('have.text', 'Session 1');
Expand Down
1 change: 0 additions & 1 deletion src/app.types.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,6 @@ export interface Session {
summary: string;
auto_saved: boolean;
session_data: ImportSessionType;
_id?: string;
}

export interface SessionResponse {
Expand Down
Loading

0 comments on commit 32c5c43

Please sign in to comment.