-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into enh/events-e2e-test-confirm-button
- Loading branch information
Showing
22 changed files
with
462 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
haibun-e2e-tests/local/features/events/more-events.feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
|
||
Feature: Event description feature | ||
|
||
Backgrounds: environment/service, pages/site | ||
|
||
go to the home webpage | ||
click the button Events | ||
be on the events webpage | ||
|
||
page is accessible accepting serious 0 and moderate 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,113 @@ | ||
export class Location { | ||
import { ILocationForm } from 'src/app/shared/components/location-form/location-form.component'; | ||
|
||
export class Location implements ILocationForm { | ||
address: string; | ||
postalCode: string; | ||
city: string; | ||
province: string; | ||
province: IProvince; | ||
country: string; | ||
|
||
constructor(address: string, city: string, province: string, country: string = 'Canada') { | ||
constructor(address: string, postalCode: string, city: string, province: IProvince, country: string = 'Canada') { | ||
this.address = address; | ||
this.postalCode = postalCode; | ||
this.city = city; | ||
this.province = province; | ||
this.country = country; | ||
} | ||
|
||
toString(): string { | ||
return `${this.address}, ${this.city}, ${this.province}`; | ||
return `${this.address} ${this.postalCode}, ${this.city}, ${this.province.abbreviation}`; | ||
} | ||
} | ||
|
||
export interface IProvince { | ||
titleEn: string; | ||
titleFr: string; | ||
abbreviation: string; | ||
} | ||
|
||
export const Provinces: IProvince[] = [ | ||
{ | ||
titleEn: 'Alberta', | ||
titleFr: 'Alberta', | ||
abbreviation: 'AB', | ||
}, | ||
{ | ||
titleEn: 'British Columbia', | ||
titleFr: 'Colombie-Britannique', | ||
abbreviation: 'BC', | ||
}, | ||
{ | ||
titleEn: 'Manitoba', | ||
titleFr: 'Manitoba', | ||
abbreviation: 'MB', | ||
}, | ||
{ | ||
titleEn: 'New Brunswick', | ||
titleFr: 'Nouveau-Brunswick', | ||
abbreviation: 'NB', | ||
}, | ||
{ | ||
titleEn: 'Newfoundland and Labrador', | ||
titleFr: 'Terre-Neuve-et-Labrador', | ||
abbreviation: 'NL', | ||
}, | ||
{ | ||
titleEn: 'Northwest Territories', | ||
titleFr: 'Territoires du Nord-Ouest', | ||
abbreviation: 'NT', | ||
}, | ||
{ | ||
titleEn: 'Nova Scotia', | ||
titleFr: 'Nouvelle-Écosse', | ||
abbreviation: 'NS', | ||
}, | ||
{ | ||
titleEn: 'Nunavut', | ||
titleFr: 'Nunavut', | ||
abbreviation: 'NU', | ||
}, | ||
{ | ||
titleEn: 'Ontario', | ||
titleFr: 'Ontario', | ||
abbreviation: 'ON', | ||
}, | ||
{ | ||
titleEn: 'Prince Edward Island', | ||
titleFr: 'Île-du-Prince-Édouard', | ||
abbreviation: 'PE', | ||
}, | ||
{ | ||
titleEn: 'Quebec', | ||
titleFr: 'Québec', | ||
abbreviation: 'QC', | ||
}, | ||
{ | ||
titleEn: 'Saskatchewan', | ||
titleFr: 'Saskatchewan', | ||
abbreviation: 'SK', | ||
}, | ||
{ | ||
titleEn: 'Yukon Territory', | ||
titleFr: 'Territoire du Yukon', | ||
abbreviation: 'YT', | ||
}, | ||
]; | ||
Object.freeze(Provinces); | ||
|
||
export class Province { | ||
static AB: IProvince = Provinces[0]; | ||
static BC: IProvince = Provinces[1]; | ||
static MB: IProvince = Provinces[2]; | ||
static NB: IProvince = Provinces[3]; | ||
static NL: IProvince = Provinces[4]; | ||
static NT: IProvince = Provinces[5]; | ||
static NS: IProvince = Provinces[6]; | ||
static NU: IProvince = Provinces[7]; | ||
static ON: IProvince = Provinces[8]; | ||
static PE: IProvince = Provinces[9]; | ||
static QC: IProvince = Provinces[10]; | ||
static SK: IProvince = Provinces[11]; | ||
static YT: IProvince = Provinces[12]; | ||
} | ||
Object.freeze(Province); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.