Skip to content

Commit

Permalink
fix playwright test (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
devksingh4 authored Sep 11, 2024
1 parent c9da76d commit a1c00a8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion e2e/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,6 @@
},
"dependencies": {
"jsonwebtoken": "^9.0.2"
}
},
"packageManager": "[email protected]+sha1.ac34549e6aa8e7ead463a7407e1c7390f61a6610"
}
3 changes: 3 additions & 0 deletions e2e/tests/student/edit.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ describe("Test that users can edit their profile", () => {
expect(page.getByText('Skills')).toBeTruthy()
expect(page.getByText('Botting')).toBeTruthy()
await page.getByRole('button', { name: 'Edit' }).click();
await page.getByRole('button', { name: 'Add Degree' }).click();
await page.getByRole('textbox', { name: 'Major' }).click();
await page.getByRole('option', { name: 'Computer Science', exact: true }).click();
await page.getByRole('button', { name: 'Save' }).click();
expect(await page.waitForSelector('text="Profile saved!"')).toBeTruthy();
});
Expand Down

0 comments on commit a1c00a8

Please sign in to comment.