Skip to content

Commit

Permalink
Added CSV files (#2568)
Browse files Browse the repository at this point in the history
  • Loading branch information
riyazuddinsyed authored Feb 5, 2020
1 parent b23b2b4 commit bbd81c7
Show file tree
Hide file tree
Showing 10 changed files with 184 additions and 61 deletions.
177 changes: 150 additions & 27 deletions e2e/conf/globals.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,42 +3,165 @@ module.exports = {
retryAssertionTimeout: 30000,
throwOnMultipleElementsReturned : true,

launch_url: "https://coops-e2e.pathfinder.gov.bc.ca",
CP0002111: {
identifier: "CP0002111",
passcode:"111111111",
dierctor_count: 8,
legal_name: "FRASER VALLEY EMPLOYMENT AND SUPPORT SERVICES CO-OPERATIVE",
mailing: {
line1: "PO BOX 518",
line2: "AGASSIZ BC V0M 1A0",
line3: "Canada"
},
delivery: {
line1: "7086 PIONEER AVENUE",
line2: "AGASSIZ BC V0M 1A0",
line3: "Canada"
},
},

CP0000977: {
identifier: "CP0000977",
passcode: "448226753",
director_count: 8,
legal_name: "WASHINGTON CO-OPERATIVE HOUSING ASSOCIATION",
CP0000019: {
identifier: "CP0000019",
passcode: "111111111",
director_count: 6,
legal_name: "THE SOINTULA CO-OPERATIVE STORE ASSOCIATION",
mailing: {
line1: "502 - 373 BURNSIDE RD. E.",
line2: "VICTORIA BC V9A 1A7",
line3: "CA"
line1: "BOX 108",
line2: "SOINTULA BC V0N 3E0",
line3: "Canada"
},
delivery: {
line1: "175 1ST STREET",
line2: "SOINTULA BC V0N 3E0",
line3: "Canada"
},
director7:{
firstname:"test",
lastname:"test2",
street: "123 test st",
optionalfield: "I am an optional field",
city:"victoria",
province:"BC",
postalcode: "V1V1V1",
country: "CA"
},

director4:{
dynamicFirstName:"JENNIFER",
dynamicLastName:"LASH",
dynamicStreet:"265-2ND STREET",
dynamicCity:"SOINTULA",
dynamicProvince:"BC",
dynamicPostalCode:"V0N3E0",
dynamicCountry:"Canada",
dynamicAppointedDate:"2018-12-21",
},
},

CP0001171: {
identifier: "CP0001171",
passcode: "111111111",
dierctor_count: 6,
legal_name: "CAMEO CO-OPERATIVE HOUSING ASSOCIATION",
mailing : {
line1: "1501 GLENTANA ROAD",
line2: "VICTORIA BC V9A 7B2",
line3: "Canada"
},
delivery: {
line1: "502 - 373 BURNSIDE RD. E.",
line2: "VICTORIA BC V9A 1A7",
line3: "CA"
line1: "786 Broughton street",
line2: "VICTORIA BC V8Z 6H4",
line3: "Canada"
}

},
director7:{
firstname:"test",
lastname:"test2",
street: "123 test st",
optionalfield: "I am an optional field",
city:"victoria",
province:"BC",
postalcode: "V1V1V1",
country: "CA"
},

CP0002148:{
identifier:"CP0002148",
legal_name: "ARC COMMUNITY COOPERATIVE ASSOCIATION",
delivery: {
line1: "#5 BARTEN RD",
line2: "LILLOOET BC V0K 1V0",
line3: "Canada"
},
mailing:{
line1: "PO BOX 1599",
line2: "LILLOOET BC V0K 1V0",
line3: "Canada"
},

director4:{
firstname:"test",
lastname:"test2",
street: "123 test st",
optionalfield: "I am an optional field",
city:"victoria",
province:"BC",
postalcode: "V1V1V1",
country: "CA"
},

director2:{
dynamicFirstName:"ALPHRED",
dynamicLastName:"LGAEDE",
dynamicStreet:"3 BARTON RD",
dynamicCity:"LILLOOET",
dynamicProvince:"BC",
dynamicPostalCode:"VV0K1V0",
dynamicCountry:"Canada",
dynamicAppointedDate:"2017-11-24",
},
},

CP0001024: {
identifier: "CP0001024",
passcode: "115692683",
director_count: 9,
legal_name: "MISSION COOPERATIVE HOUSING ASSOCIATION",
CP0001188: {
identifier:"CP0001188",
legal_name: "SHIRE COMMUNITY CO-OPERATIVE",
delivery: {
line1:"90 Douglas Rd",
line2: "Victoria BC V8Z 5H4",
line3: "Canada",
},
mailing: {
line1: "25 - 7365 CEDAR ST.",
line2: "MISSION BC V2V 5S7",
line3: "CA"
line1 :"SHINGLE SPIT ROAD",
line2 :"HONBY ISLAND BC V0R 1Z0",
line3: "Canada",
},
},

CP0001403:{
identifier:"CP0001403",
legal_name: "SOUTHGATE MANOR CO-OPERATIVE ASSOCIATION",
delivery: {
line1: "25 - 7365 CEDAR ST.",
line2: "MISSION BC V2V 5S7",
line3: "CA"
}

}
line1:"15 INTERURBAN RD",
line2: "VICTORIA BC V8G 5H6",
line3: "Canada",
},
mailing: {
line1 :"300 - 1961 DUNN STREET",
line2 :"KELOWNA BC V1Y 4C4",
line3: "Canada",
},
director4:{
firstname:"test",
lastname:"test2",
street: "123 test st",
optionalfield: "I am an optional field",
city:"victoria",
province:"BC",
postalcode: "V1V1V1",
country: "CA"
},


},

};
Binary file added e2e/lear-data/CP0001171.XLS
Binary file not shown.
Binary file added e2e/lear-data/CP0001188.xls
Binary file not shown.
Binary file added e2e/lear-data/CP0001403.xls
Binary file not shown.
Binary file added e2e/lear-data/CP0002111.xls
Binary file not shown.
Binary file added e2e/lear-data/CP0002148.xls
Binary file not shown.
16 changes: 8 additions & 8 deletions e2e/tests/coops/COA.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,17 @@ module.exports = {
},
'1.Verify initial state of dashboard, then start COA filing': function (browser) {
dashboard = browser.page.dashboardPage();
dashboard.verifyTombstone(browser.globals.CP0000019);
dashboard.verifyAddresses(browser.globals.CP0000019);
//dashboard.verifyDirectorCount(browser.globals.CP0000019.director_count);
dashboard.verifyTombstone(browser.globals.CP0002111);
dashboard.verifyAddresses(browser.globals.CP0002111);
//dashboard.verifyDirectorCount(browser.globals.CP0002111.director_count);
dashboard.startCoaFiling();
},

'2.Confirm initial state of COA filing': function (browser) {
CoaPage = browser.page.CoaPage();
CoaPage.verfifyInitialCoaState(browser.globals.CP0000019);
CoaPage.verfifyInitialCoaState(browser.globals.CP0002111);
CoaPage.checkTotalFees('$0.00');
CoaPage.verifyOfficeAddresses(browser.globals.CP0000019);
CoaPage.verifyOfficeAddresses(browser.globals.CP0002111);
},

'3.Edit the Office Addresses': function (browser) {
Expand Down Expand Up @@ -94,9 +94,9 @@ module.exports = {

'10.Confirm initial state of COA filing - POST DRAFT': function (browser) {
CoaPage = browser.page.CoaPage();
CoaPage.verfifyInitialCoaState(browser.globals.CP0000019);
CoaPage.verfifyInitialCoaState(browser.globals.CP0002111);
CoaPage.checkTotalFees('$0.00');
CoaPage.verifyOfficeAddresses(browser.globals.CP0000019);
CoaPage.verifyOfficeAddresses(browser.globals.CP0002111);
},

'11.Edit the Office Addresses - POST DRAFT': function (browser) {
Expand Down Expand Up @@ -185,7 +185,7 @@ module.exports = {
dashboard.assert.containsText('@toDoListHeader', 'To Do (3)');
dashboard.assert.containsText('@filingHistoryHeader', 'Recent Filing History (56)');
dashboard.assert.containsText('@topFilingInHistoryName', 'Address Change');
// dashboard.verifyDirectorCount(browser.globals.CP0000019.director_count);
// dashboard.verifyDirectorCount(browser.globals.CP0002111.director_count);
dashboard.assert.containsText('@deliveryAddressLabel', 'Delivery Address');
dashboard.assert.containsText('@deliveryLine1', '123 test street');
dashboard.assert.containsText('@deliveryLine2', 'Victoria BC V8V 4K9');
Expand Down
16 changes: 8 additions & 8 deletions e2e/tests/coops/COD.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,23 @@ module.exports = {
},
'1.Verify initial state of dashboard, then start COD filing': function (browser) {
dashboard = browser.page.dashboardPage();
dashboard.verifyTombstone(browser.globals.CP0000019);
dashboard.verifyAddresses(browser.globals.CP0000019);
// dashboard.verifyDirectorCount(browser.globals.CP0000019.director_count)
dashboard.verifyTombstone(browser.globals.CP0001171);
dashboard.verifyAddresses(browser.globals.CP0001171);
// dashboard.verifyDirectorCount(browser.globals.CP0001171.director_count)
dashboard.startCodFiling()
},

'2.Confirm initial state of COD filing': function (browser) {
CodPage = browser.page.CodPage();
CodPage.verfifyInitialCodState(browser.globals.CP0000019);
CodPage.verfifyInitialCodState(browser.globals.CP0001171);
CodPage.checkTotalFees('$0.00');
},

'3.Appoint New Director': function (browser) {
CodPage = browser.page.CodPage()
CodPage.startAppointingNewDirector()
CodPage.AddNewDirector(browser.globals.CP0000019.director7,7);
CodPage.validateDirectorByNumber(browser.globals.CP0000019.director4,4)
CodPage.AddNewDirector(browser.globals.CP0001171.director7,7);
CodPage.validateDirectorByNumber(browser.globals.CP0001171.director4,4)
},

'4.Certify who filed': function (browser) {
Expand Down Expand Up @@ -78,15 +78,15 @@ module.exports = {

'11.Confirm initial state of COD filing - POST DRAFT': function (browser) {
CodPage = browser.page.CodPage();
CodPage.verfifyInitialCodState(browser.globals.CP0002148);
CodPage.verfifyInitialCodState(browser.globals.CP0001171);
CodPage.checkTotalFees('$0.00');
},

'12.Appoint New DIRECTOR - POST DRAFT': function (browser) {
CodPage = browser.page.CodPage();
CodPage.startAppointingNewDirector()
CodPage.AddNewDirector(browser.globals.CP0002148.director7,7);
// CodPage.validateDirectorByNumber(browser.globals.CP0000019.director3,3)
// CodPage.validateDirectorByNumber(browser.globals.CP0001171.director3,3)
},

'13.Certify who filed - POST DRAFT': function (browser) {
Expand Down
18 changes: 9 additions & 9 deletions e2e/tests/coops/staffCOA.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,23 @@ module.exports={
'Login To Dashboard':function(browser){
browser
.assert.visible('#app > div > div.app-body > div > h1','Search Co-operatives')
.setValue('#txtBusinessNumber', browser.globals.CP0002148.identifier)
.setValue('#txtBusinessNumber', browser.globals.CP0001188.identifier)
.click('#app > div > div.app-body > div > form > button')
},

'1.Verify initial state of dashboard, then start COA filing': function (browser) {
dashboard = browser.page.dashboardPage();
dashboard.verifyTombstone(browser.globals.CP0002148);
dashboard.verifyAddresses(browser.globals.CP0002148);
// dashboard.verifyDirectorCount(browser.globals.CP0002148.director_count);
dashboard.verifyTombstone(browser.globals.CP0001188);
dashboard.verifyAddresses(browser.globals.CP0001188);
// dashboard.verifyDirectorCount(browser.globals.CP0001188.director_count);
dashboard.startCoaFiling();
},

'2.Confirm initial state of COA filing': function (browser) {
CoaPage = browser.page.CoaPage();
CoaPage.verfifyInitialCoaState(browser.globals.CP0002148);
CoaPage.verfifyInitialCoaState(browser.globals.CP0001188);
CoaPage.checkTotalFees('$0.00');
CoaPage.verifyOfficeAddresses(browser.globals.CP0002148);
CoaPage.verifyOfficeAddresses(browser.globals.CP0001188);
},

'3.Edit the Office Addresses': function (browser) {
Expand Down Expand Up @@ -99,9 +99,9 @@ module.exports={

'10.Confirm initial state of COA filing - POST DRAFT': function (browser) {
CoaPage = browser.page.CoaPage();
CoaPage.verfifyInitialCoaState(browser.globals.CP0002148);
CoaPage.verfifyInitialCoaState(browser.globals.CP0001188);
CoaPage.checkTotalFees('$0.00');
CoaPage.verifyOfficeAddresses(browser.globals.CP0002148);
CoaPage.verifyOfficeAddresses(browser.globals.CP0001188);
},

'11.Edit the Office Addresses - POST DRAFT': function (browser) {
Expand Down Expand Up @@ -143,7 +143,7 @@ module.exports={
dashboard.assert.containsText('@toDoListHeader', 'To Do (3)');
dashboard.assert.containsText('@filingHistoryHeader', 'Recent Filing History (9)');
dashboard.assert.containsText('@topFilingInHistoryName', 'Address Change');
// dashboard.verifyDirectorCount(browser.globals.CP0002148.director_count + 1);
// dashboard.verifyDirectorCount(browser.globals.CP0001188.director_count + 1);
dashboard.assert.containsText('@deliveryAddressLabel', 'Delivery Address');
dashboard.assert.containsText('@deliveryLine1', '123 test street');
dashboard.assert.containsText('@deliveryLine2', 'Victoria BC V8V 4K9');
Expand Down
18 changes: 9 additions & 9 deletions e2e/tests/coops/staffCOD.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,30 +14,30 @@ module.exports={
'Login To Dashboard':function(browser){
browser
.assert.visible('#app > div > div.app-body > div > h1','Search Co-operatives')
.setValue('#txtBusinessNumber', browser.globals.CP0002148.identifier)
.setValue('#txtBusinessNumber', browser.globals.CP0001403.identifier)
.click('#app > div > div.app-body > div > form > button')
},


'1.Verify initial state of dashboard, then start COD filing': function (browser) {
dashboard = browser.page.dashboardPage();
dashboard.verifyTombstone(browser.globals.CP0002148);
dashboard.verifyAddresses(browser.globals.CP0002148);
// dashboard.verifyDirectorCount(browser.globals.CP0002148.director_count)
dashboard.verifyTombstone(browser.globals.CP0001403);
dashboard.verifyAddresses(browser.globals.CP0001403);
// dashboard.verifyDirectorCount(browser.globals.CP0001403.director_count)
dashboard.startCodFiling()
},

'2.Confirm initial state of COD filing': function (browser) {
CodPage = browser.page.CodPage();
CodPage.verfifyInitialCodState(browser.globals.CP0002148);
CodPage.verfifyInitialCodState(browser.globals.CP0001403);
CodPage.checkTotalFees('$0.00');
},

'3.Appoint New Director': function (browser) {
CodPage = browser.page.CodPage()
CodPage.startAppointingNewDirector()
CodPage.AddNewDirector(browser.globals.CP0002148.director4,4);
// CodPage.validateDirectorByNumber(browser.globals.CP0002148.director2,2)
CodPage.AddNewDirector(browser.globals.CP0001403.director4,4);
// CodPage.validateDirectorByNumber(browser.globals.CP0001403.director2,2)
},

'4.Certify who filed': function (browser) {
Expand Down Expand Up @@ -95,7 +95,7 @@ module.exports={
CodPage = browser.page.CodPage();
CodPage.startAppointingNewDirector()
CodPage.AddNewDirector(browser.globals.CP0002148.director4,4);
// CodPage.validateDirectorByNumber(browser.globals.CP0002148.director3,3)
// CodPage.validateDirectorByNumber(browser.globals.CP0001403.director3,3)
},

'13.Certify who filed - POST DRAFT': function (browser) {
Expand All @@ -113,7 +113,7 @@ module.exports={
dashboard.assert.containsText('@toDoListHeader', 'To Do (3)');
dashboard.assert.containsText('@filingHistoryHeader', 'Recent Filing History (10)');
dashboard.assert.containsText('@topFilingInHistoryName', 'Addresses Change');
// dashboard.verifyDirectorCount(browser.globals.CP0002148.new_director_count);
// dashboard.verifyDirectorCount(browser.globals.CP0001403.new_director_count);
dashboard.assert.containsText('@deliveryAddressLabel', 'Delivery Address');
dashboard.assert.containsText('@deliveryLine1', '123 test street');
dashboard.assert.containsText('@deliveryLine2', 'Victoria BC V8V 4K9');
Expand Down

0 comments on commit bbd81c7

Please sign in to comment.