Skip to content

Commit

Permalink
minor changes for fse ui tests to address non-english localization
Browse files Browse the repository at this point in the history
  • Loading branch information
kbrener-eis committed Dec 18, 2024
1 parent 75f4170 commit 7d9e683
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 8 deletions.
10 changes: 4 additions & 6 deletions cypress/e2e/fse/ui/copycat-ui.cy.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import TopMenu from '../../../support/fragments/topMenu';
import SettingsInventory, {
INVENTORY_SETTINGS_TABS,
} from '../../../support/fragments/settings/inventory/settingsInventory';
import SettingsInventory from '../../../support/fragments/settings/inventory/settingsInventory';
import Z3950TargetProfiles from '../../../support/fragments/settings/inventory/integrations/z39.50TargetProfiles';

describe('fse-copycat - UI for productions tenants', () => {
Expand All @@ -17,9 +15,9 @@ describe('fse-copycat - UI for productions tenants', () => {
{ tags: ['sanity', 'fse', 'ui', 'copycat'] },
() => {
cy.visit(TopMenu.settingsPath);
SettingsInventory.goToSettingsInventory();
SettingsInventory.selectSettingsTab(INVENTORY_SETTINGS_TABS.TARGET_PROFILES);
Z3950TargetProfiles.verifyTargetProfilesListDisplayed();
SettingsInventory.goToSettingsInventoryNoInteractors();
SettingsInventory.selectz3950ProfilesNoInteractors();
Z3950TargetProfiles.verifyTargetProfilesListDisplayedNoIntearctors();
},
);
});
2 changes: 1 addition & 1 deletion cypress/e2e/fse/ui/data-import-ui.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ describe('fse-data-import - UI', () => {
{ tags: ['sanity', 'fse', 'ui', 'data-import'] },
() => {
cy.visit(TopMenu.dataImportPath);
DataImport.waitLoading();
DataImport.waitLoadingNoInteractors();
},
);
});
5 changes: 5 additions & 0 deletions cypress/support/fragments/data_import/dataImport.js
Original file line number Diff line number Diff line change
Expand Up @@ -952,4 +952,9 @@ export default {
verifyUploadSectionHasNoUplodedFiles() {
cy.expect(sectionPaneJobsTitle.find(Button('or choose files')).exists());
},

waitLoadingNoInteractors() {
cy.expect(sectionPaneJobsTitle.exists());
cy.expect(logsPaneHeader.exists());
},
};
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,7 @@ export default {
},

resetAll() {
cy.do(resetAllBtn.click());
cy.do(resetAllButton.click());
cy.wait(1000);
},

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -338,4 +338,8 @@ export default {
isDefaultSearchParamsRequired: false,
});
},

verifyTargetProfilesListDisplayedNoIntearctors() {
cy.xpath("//span[contains(text(), 'Z39.50')]").should('be.visible');
},
};
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,13 @@ export default {
cy.do(NavListItem('Inventory').click());
cy.expect(inventoryPane.exists());
},

goToSettingsInventoryNoInteractors() {
cy.xpath("//a[contains(@href, '/settings/inventory')]").click();
cy.xpath("//div[@id='paneHeaderapp-settings-nav-pane']").should('be.visible');
},

selectz3950ProfilesNoInteractors() {
cy.xpath("//a[contains(@href, '/settings/inventory/targetProfiles')]").click();
},
};

0 comments on commit 7d9e683

Please sign in to comment.