Skip to content

Commit

Permalink
test(e2e): remove '' from consideration (#1140)
Browse files Browse the repository at this point in the history
The previous address used to include an empty string which was
taken into consideration when comparing with the new value.
  • Loading branch information
Zangetsu101 authored Oct 14, 2024
1 parent 628ed05 commit d860229
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions e2e/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -204,14 +204,13 @@ export const expectAddress = async (
'Farajaland'
'Central'
'Ibombo'
''
'Example Town' / 'Example village'
'Mitali Residential Area'
'4/A'
'1324'
*/
const getDeletionPosition = (i: number) => i + (i < 3 ? 1 : 2)
const getDeletionPosition = (i: number) => i + 1 // for the extra '-' at the beginning

export const expectTexts = async (locator: Locator, texts: string[]) => {
for (const text of texts) {
Expand Down

0 comments on commit d860229

Please sign in to comment.