Skip to content

Commit

Permalink
Spitfire minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
zentestuken committed Jan 8, 2025
1 parent 66bf0c3 commit 81d00f5
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ describe('MARC', () => {
ManageAuthorityFiles.checkAuthorityFilesTableExists();
ManageAuthorityFiles.verifyTableHeaders();
ManageAuthorityFiles.checkActiveTooltipButtonShown();
ManageAuthorityFiles.checkNewButtonEnabled(false);
ManageAuthorityFiles.checkNewButtonShown(false);
ManageAuthorityFiles.checkManageAuthorityFilesPaneExists();
ManageAuthorityFiles.checkAuthorityFilesTableNotEditable();

Expand All @@ -87,7 +87,7 @@ describe('MARC', () => {
ManageAuthorityFiles.checkAuthorityFilesTableExists();
ManageAuthorityFiles.verifyTableHeaders();
ManageAuthorityFiles.checkActiveTooltipButtonShown();
ManageAuthorityFiles.checkNewButtonEnabled(false);
ManageAuthorityFiles.checkNewButtonShown(false);
ManageAuthorityFiles.checkManageAuthorityFilesPaneExists();
ManageAuthorityFiles.checkAuthorityFilesTableNotEditable();
});
Expand All @@ -107,7 +107,7 @@ describe('MARC', () => {
ManageAuthorityFiles.checkAuthorityFilesTableExists();
ManageAuthorityFiles.verifyTableHeaders();
ManageAuthorityFiles.checkActiveTooltipButtonShown();
ManageAuthorityFiles.checkNewButtonEnabled(false);
ManageAuthorityFiles.checkNewButtonShown(false);
ManageAuthorityFiles.checkManageAuthorityFilesPaneExists();
ManageAuthorityFiles.checkAuthorityFilesTableNotEditable();

Expand Down
4 changes: 2 additions & 2 deletions cypress/support/api/inventory.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const DEFAULT_INSTANCE = {
const displaySettingsBody = {
id: uuid(),
key: 'display-settings',
scope: 'ui-inventory.display-settings',
scope: 'ui-inventory.display-settings.manage',
value: {
defaultSort: '',
},
Expand Down Expand Up @@ -544,7 +544,7 @@ Cypress.Commands.add('getInventoryDisplaySettingsViaAPI', () => {
method: 'GET',
path: 'settings/entries',
searchParams: {
query: '(scope==ui-inventory.display-settings and key==display-settings)',
query: '(scope==ui-inventory.display-settings.manage and key==display-settings)',
},
isDefaultSearchParamsRequired: false,
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -545,11 +545,16 @@ export default {
},

waitContentLoading() {
cy.expect([firstRow.exists(), newButton.has({ disabled: or(true, false) })]);
cy.expect(firstRow.exists());
cy.wait(3000);
},

checkActiveTooltipButtonShown() {
cy.expect(MultiColumnListHeader(tableHeaderTexts[4]).find(tooltipButton).exists());
},

checkNewButtonShown(isShown = true) {
if (isShown) cy.expect(newButton.exists());
else cy.expect(newButton.absent());
},
};
2 changes: 1 addition & 1 deletion cypress/support/login.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Cypress.Commands.add(
Cypress.Commands.add('logout', () => {
cy.do([Dropdown({ id: 'profileDropdown' }).open(), Button('Log out').click()]);

cy.expect(Button('Log in', { disabled: true }).exists());
cy.expect(Button('Log in again', { disabled: true }).exists());
});

Cypress.Commands.add('loginAsAdmin', (visitPath) => {
Expand Down

0 comments on commit 81d00f5

Please sign in to comment.