Fix unassigned variable (#52)

This commit is contained in:
Martin Braquet
2026-05-21 17:50:52 +02:00
committed by GitHub
parent 00c6f2566e
commit 8e921e0a53
3 changed files with 5 additions and 5 deletions

View File

@@ -427,8 +427,8 @@ export class PeoplePage {
async verifyNumberOfMatchingProfiles(count: number) {
await expect(this.profileCount).toBeVisible()
const test = await this.profileCount.textContent()
if (!test) return
expect(actual).toStrictEqual(expected)
const actualCount = await this.profileCount.textContent()
if (!actualCount) return
expect(parseInt(actualCount)).toStrictEqual(count)
}
}

View File

@@ -38,4 +38,4 @@ test.describe('when given invalid input', () => {
page.getByText('Failed to sign in with your email and password', {exact: true}),
).toBeVisible()
})
})
})

View File

@@ -28,4 +28,4 @@ test.describe('when an error occurs', () => {
await app.signUp.verifyUsernameError()
await expect(app.signUp.nextButtonLocator).toBeDisabled()
})
})
})