Skip to content

Commit

Permalink
MWB-900: conceptual mappings fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SilverBerserk committed Dec 9, 2024
1 parent 68945a2 commit fc70874
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 13 deletions.
2 changes: 1 addition & 1 deletion mapping_workbench/frontend/cypress.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ module.exports = defineConfig({
"cypress/e2e/fieldsDevelop.feature",
"cypress/e2e/fieldsTree.feature",
"cypress/e2e/fieldsOverview.feature",
//ConceptualMappings
//Conceptual Mappings
"cypress/e2e/conceptualMappingsDevelop.feature",
"cypress/e2e/conceptualMappingsReview.feature",
"cypress/e2e/conceptualMappingsOverview.feature",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ Feature: Conceptual Mappings Rules Develop
Background:
Given Session Login
Then Go Home
Then I open side menu

Scenario: View Conceptual Mapping
Then I click on CM Develop
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ Given('Session Login', () => {

When('I click on CM Develop', () => {
cy.intercept('GET', appURLPrefix + 'conceptual_mapping_rules*',).as('get')
cy.get('#nav_conceptual_mappings').click();
cy.get(':nth-child(1) > #nav_develop').eq(1).click();
cy.get('#conceptual_mappings').click();
cy.get('#conceptual_mappings_develop_tab').click();
})


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ Feature: Conceptual Mappings Rules Overview
Background:
Given Session Login
Then Go Home
Then I open side menu

Scenario: View Conceptual Mapping
Then I click on CM Overview
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ Given('Session Login', () => {

When('I click on CM Overview', () => {
cy.intercept('GET', appURLPrefix + 'conceptual_mapping_rules*',).as('get')
cy.get('#nav_conceptual_mappings').click();
cy.get(':nth-child(3) > #nav_overview').click();
cy.get('#conceptual_mappings').click();
cy.get('#conceptual_mappings_overview_tab').click();
})


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ Feature: Conceptual Mappings Rules Review
Background:
Given Session Login
Then Go Home
Then I open side menu

Scenario: View Conceptual Mapping
Then I click on CM Review
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ Given('Session Login', () => {

When('I click on CM Review', () => {
cy.intercept('GET', appURLPrefix + 'conceptual_mapping_rules*',).as('get')
cy.get('#nav_conceptual_mappings').click();
cy.get('#nav_review').click();
cy.get('#conceptual_mappings').click();
cy.get('#conceptual_mappings_review_tab').click();
})


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,18 @@ import {paths} from '../../../paths';
const TABS = [
{
label: 'In development',
value: paths.app.conceptual_mapping_rules.develop.index
value: paths.app.conceptual_mapping_rules.develop.index,
id:'conceptual_mappings_develop_tab'
},
{
label: 'In review',
value: paths.app.conceptual_mapping_rules.review.index
value: paths.app.conceptual_mapping_rules.review.index,
id:'conceptual_mappings_review_tab'
},
{
label: 'Approved',
value: paths.app.conceptual_mapping_rules.overview.index
value: paths.app.conceptual_mapping_rules.overview.index,
id:'conceptual_mappings_overview_tab'
}]

export const ConceptualMappingTabs = () => {
Expand All @@ -24,6 +27,7 @@ export const ConceptualMappingTabs = () => {
return <Tabs value={router.pathname}
onChange={handleTabsChange}>
{TABS.map(tab => <Tab key={tab.value}
id={tab.id}
label={tab.label}
value={tab.value}/>)}
</Tabs>
Expand Down

0 comments on commit fc70874

Please sign in to comment.