Skip to content

Commit

Permalink
fix tests part 17
Browse files Browse the repository at this point in the history
  • Loading branch information
devksingh4 committed Sep 11, 2024
1 parent b9ed073 commit decb73a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion e2e/tests/student/edit.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ 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();
if (!(await page.getByRole('button', { name: 'Remove' }).nth(1).isVisible())) {
const alreadyHasDegree = await page.getByText('Degree Level').isVisible();
if (!alreadyHasDegree) {
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();
Expand Down

0 comments on commit decb73a

Please sign in to comment.