-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #149 from Samagra-Anamaya/dev
Dev
- Loading branch information
Showing
138 changed files
with
76,465 additions
and
7,425 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,6 @@ | ||
{ | ||
"extends": [ | ||
"samagra-ui-configs/rules/eslint.js", | ||
"next/core-web-vitals" | ||
] | ||
} |
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,96 +1,69 @@ | ||
{ | ||
"auth": { | ||
"username": "", | ||
"access_key": "" | ||
}, | ||
"browsers": [ | ||
{ | ||
"browser": "chrome", | ||
"os": "Windows 10", | ||
"versions": [ | ||
"latest", | ||
"latest-1" | ||
] | ||
}, | ||
{ | ||
"browser": "firefox", | ||
"os": "Windows 10", | ||
"versions": [ | ||
"latest", | ||
"latest-1" | ||
] | ||
}, | ||
{ | ||
"browser": "edge", | ||
"os": "Windows 10", | ||
"versions": [ | ||
"latest", | ||
"latest-1" | ||
] | ||
}, | ||
{ | ||
"browser": "chrome", | ||
"os": "OS X Mojave", | ||
"versions": [ | ||
"latest", | ||
"latest-1" | ||
] | ||
}, | ||
{ | ||
"browser": "firefox", | ||
"os": "OS X Mojave", | ||
"versions": [ | ||
"latest", | ||
"latest-1" | ||
] | ||
}, | ||
{ | ||
"browser": "edge", | ||
"os": "OS X Mojave", | ||
"versions": [ | ||
"latest", | ||
"latest-1" | ||
] | ||
}, | ||
{ | ||
"browser": "chrome", | ||
"os": "OS X Catalina", | ||
"versions": [ | ||
"latest", | ||
"latest-1" | ||
] | ||
}, | ||
{ | ||
"browser": "firefox", | ||
"os": "OS X Catalina", | ||
"versions": [ | ||
"latest", | ||
"latest-1" | ||
] | ||
}, | ||
{ | ||
"browser": "edge", | ||
"os": "OS X Catalina", | ||
"versions": [ | ||
"latest", | ||
"latest-1" | ||
] | ||
} | ||
], | ||
"run_settings": { | ||
"cypress_config_file": "./cypress.config.ts", | ||
"project_name": "Stride", | ||
"build_name": ".next", | ||
"exclude": [], | ||
"parallels": 5, | ||
"headless": true | ||
}, | ||
"connection_settings": { | ||
"local": false, | ||
"local_identifier": null, | ||
"local_mode": null, | ||
"local_config_file": null | ||
}, | ||
|
||
"disable_usage_reporting": false | ||
} | ||
"auth": { | ||
"username": "", | ||
"access_key": "" | ||
}, | ||
"browsers": [ | ||
{ | ||
"browser": "chrome", | ||
"os": "Windows 10", | ||
"versions": ["latest", "latest-1"] | ||
}, | ||
{ | ||
"browser": "firefox", | ||
"os": "Windows 10", | ||
"versions": ["latest", "latest-1"] | ||
}, | ||
{ | ||
"browser": "edge", | ||
"os": "Windows 10", | ||
"versions": ["latest", "latest-1"] | ||
}, | ||
{ | ||
"browser": "chrome", | ||
"os": "OS X Mojave", | ||
"versions": ["latest", "latest-1"] | ||
}, | ||
{ | ||
"browser": "firefox", | ||
"os": "OS X Mojave", | ||
"versions": ["latest", "latest-1"] | ||
}, | ||
{ | ||
"browser": "edge", | ||
"os": "OS X Mojave", | ||
"versions": ["latest", "latest-1"] | ||
}, | ||
{ | ||
"browser": "chrome", | ||
"os": "OS X Catalina", | ||
"versions": ["latest", "latest-1"] | ||
}, | ||
{ | ||
"browser": "firefox", | ||
"os": "OS X Catalina", | ||
"versions": ["latest", "latest-1"] | ||
}, | ||
{ | ||
"browser": "edge", | ||
"os": "OS X Catalina", | ||
"versions": ["latest", "latest-1"] | ||
} | ||
], | ||
"run_settings": { | ||
"cypress_config_file": "./cypress.config.ts", | ||
"project_name": "Stride", | ||
"build_name": ".next", | ||
"exclude": [], | ||
"parallels": 5, | ||
"headless": true | ||
}, | ||
"connection_settings": { | ||
"local": false, | ||
"local_identifier": null, | ||
"local_mode": null, | ||
"local_config_file": null | ||
}, | ||
|
||
"disable_usage_reporting": false | ||
} |
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,18 +1,18 @@ | ||
import { defineConfig } from "cypress"; | ||
import { defineConfig } from 'cypress'; | ||
|
||
export default defineConfig({ | ||
e2e: { | ||
baseUrl: "http://localhost:3000", | ||
setupNodeEvents(on, config) { | ||
// implement node event listeners here | ||
}, | ||
testIsolation: false, | ||
}, | ||
e2e: { | ||
baseUrl: 'http://localhost:3000', | ||
setupNodeEvents(on, config) { | ||
// implement node event listeners here | ||
}, | ||
testIsolation: false | ||
}, | ||
|
||
component: { | ||
devServer: { | ||
framework: "next", | ||
bundler: "webpack", | ||
}, | ||
}, | ||
component: { | ||
devServer: { | ||
framework: 'next', | ||
bundler: 'webpack' | ||
} | ||
} | ||
}); |
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,30 +1,24 @@ | ||
describe('Check Synced Titles Flow', () => { | ||
it('Assert Number of Villages', () => { | ||
cy.visit('/'); | ||
cy.wait(1000); | ||
cy.get('#gpVillages').then(($value) => { | ||
cy.get('.villages').should('have.length', $value.text()); | ||
}); | ||
}); | ||
|
||
it('Assert Number of Villages', () => { | ||
cy.visit('/') | ||
cy.wait(1000); | ||
cy.get('#gpVillages').then(($value) => { | ||
it('Pick a random village from GP', () => { | ||
cy.get('.villages') | ||
.its('length') | ||
.then((n) => Cypress._.random(0, n - 1)) | ||
.then((k) => { | ||
cy.log(`picked random index ${k}`); | ||
// get all elements again and pick one | ||
cy.get('.villages').eq(k).click(); | ||
}); | ||
}); | ||
|
||
cy.get('.villages') | ||
.should('have.length', $value.text()) | ||
}) | ||
|
||
}) | ||
|
||
it('Pick a random village from GP', () => { | ||
|
||
cy.get('.villages') | ||
.its('length') | ||
.then((n) => Cypress._.random(0, n - 1)) | ||
.then((k) => { | ||
cy.log(`picked random index ${k}`) | ||
// get all elements again and pick one | ||
cy.get('.villages').eq(k).click() | ||
}) | ||
}) | ||
|
||
it('Select Submitted Titles', () => { | ||
cy.get("#submittedTitles").click(); | ||
}) | ||
|
||
}) | ||
it('Select Submitted Titles', () => { | ||
cy.get('#submittedTitles').click(); | ||
}); | ||
}); |
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,38 +1,28 @@ | ||
describe('Check Synced Titles Flow', () => { | ||
|
||
it('Assert Number of Villages', () => { | ||
cy.visit('/') | ||
cy.wait(1000); | ||
cy.get('#gpVillages').then(($value) => { | ||
|
||
cy.get('.villages') | ||
.should('have.length', $value.text()) | ||
}) | ||
|
||
}) | ||
|
||
it('Pick a random village from GP', () => { | ||
|
||
cy.get('.villages') | ||
.its('length') | ||
.then((n) => Cypress._.random(0, n - 1)) | ||
.then((k) => { | ||
cy.log(`picked random index ${k}`) | ||
// get all elements again and pick one | ||
cy.get('.villages').eq(k).click() | ||
}) | ||
}) | ||
|
||
it('Select Synced Titles', () => { | ||
cy.get("#syncedTitles").click(); | ||
}) | ||
|
||
it('View a Synced Title', () => { | ||
cy.get('.titles').then(($el) => { | ||
|
||
|
||
}) | ||
}) | ||
|
||
|
||
}) | ||
it('Assert Number of Villages', () => { | ||
cy.visit('/'); | ||
cy.wait(1000); | ||
cy.get('#gpVillages').then(($value) => { | ||
cy.get('.villages').should('have.length', $value.text()); | ||
}); | ||
}); | ||
|
||
it('Pick a random village from GP', () => { | ||
cy.get('.villages') | ||
.its('length') | ||
.then((n) => Cypress._.random(0, n - 1)) | ||
.then((k) => { | ||
cy.log(`picked random index ${k}`); | ||
// get all elements again and pick one | ||
cy.get('.villages').eq(k).click(); | ||
}); | ||
}); | ||
|
||
it('Select Synced Titles', () => { | ||
cy.get('#syncedTitles').click(); | ||
}); | ||
|
||
it('View a Synced Title', () => { | ||
cy.get('.titles').then(($el) => {}); | ||
}); | ||
}); |
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,22 +1,18 @@ | ||
describe('Login Flow', () => { | ||
const username = "gp_115550"; | ||
const password = "pass_115550"; | ||
const username = 'gp_115550'; | ||
const password = 'pass_115550'; | ||
|
||
it('Visits the login page', () => { | ||
cy.visit('') | ||
}) | ||
it('Visits the login page', () => { | ||
cy.visit(''); | ||
}); | ||
|
||
it('Attempts Login', () => { | ||
it('Attempts Login', () => { | ||
cy.get('#username').type(username); | ||
cy.get('#password').type(password); | ||
cy.get('#loginBtn').click(); | ||
}); | ||
|
||
cy.get('#username').type(username); | ||
cy.get('#password').type(password); | ||
cy.get('#loginBtn').click(); | ||
|
||
}) | ||
|
||
it('Assert login is correct', () => { | ||
|
||
cy.get('#enumeratorId').should('have.text', username) | ||
|
||
}) | ||
}) | ||
it('Assert login is correct', () => { | ||
cy.get('#enumeratorId').should('have.text', username); | ||
}); | ||
}); |
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,5 +1,5 @@ | ||
{ | ||
"name": "Using fixtures to represent data", | ||
"email": "hello@cypress.io", | ||
"body": "Fixtures are a great way to mock data for responses to routes" | ||
"name": "Using fixtures to represent data", | ||
"email": "hello@cypress.io", | ||
"body": "Fixtures are a great way to mock data for responses to routes" | ||
} |
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.