-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
src/stores: add registerChallenge store and connect personalDetails a…
…nd company sections (#542) * create new store registerChallenge + update Organization types * refactor form-select-organization into a component * update organization type enum * rename division variable * rename division type * refactor formfieldcompanyaddress and organization options * refactor form-select-organization logic * refactor model values * link form-select-organization data to store * model personal details from store * link select-organization to store * update fixture data * fix form-personal-details defaults * form-select-organization basic tests * fix form-field-select-table tests * fix tests for form-field-company-address * update register challenge e2e tetss * update default values * update docs * composable rename * update docs * updates after merg * cleanup * update default values and v-model handling of store values * fix form-login test variables * update default values for organizationId and addressId --------- Co-authored-by: Šimon Macek <[email protected]>
- Loading branch information
1 parent
ea80e08
commit b989570
Showing
24 changed files
with
937 additions
and
639 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
import FormSelectOrganization from 'components/form/FormSelectOrganization.vue'; | ||
import { i18n } from '../../boot/i18n'; | ||
|
||
// selectors | ||
const selectorFormFieldCompanyAddress = 'form-company-address'; | ||
const selectorFormFieldSelectTable = 'form-select-table-company'; | ||
const selectorFormSelectOrganization = 'form-select-organization'; | ||
|
||
describe('<FormSelectOrganization>', () => { | ||
it('has translation for all strings', () => { | ||
cy.testLanguageStringsInContext([], 'index.component', i18n); | ||
}); | ||
|
||
context('desktop', () => { | ||
beforeEach(() => { | ||
cy.mount(FormSelectOrganization, { | ||
props: {}, | ||
}); | ||
cy.viewport('macbook-16'); | ||
}); | ||
|
||
coreTests(); | ||
}); | ||
|
||
context('mobile', () => { | ||
beforeEach(() => { | ||
cy.mount(FormSelectOrganization, { | ||
props: {}, | ||
}); | ||
cy.viewport('iphone-6'); | ||
}); | ||
|
||
coreTests(); | ||
}); | ||
}); | ||
|
||
function coreTests() { | ||
it('renders the main component', () => { | ||
cy.dataCy(selectorFormSelectOrganization).should('be.visible'); | ||
}); | ||
|
||
it('renders the FormFieldSelectTable component', () => { | ||
cy.dataCy(selectorFormFieldSelectTable).should('be.visible'); | ||
}); | ||
|
||
it('renders the FormFieldCompanyAddress component', () => { | ||
cy.dataCy(selectorFormFieldCompanyAddress).should('be.visible'); | ||
}); | ||
} |
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.