Skip to content

Commit

Permalink
Fix e2e tests and docs post labels changes 2
Browse files Browse the repository at this point in the history
Signed-off-by: Francesco Torchia <[email protected]>
  • Loading branch information
torchiaf committed Nov 5, 2024
1 parent 9d6a9f0 commit 6dd5a17
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cypress/e2e/po/pages/account-api-keys.po.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default class AccountPagePo extends PagePo {
static navTo() {
const userMenu = new UserMenuPo();

userMenu.clickMenuItem('Account & API Keys');
userMenu.clickMenuItem('Account and API Keys');
}

waitForRequests() {
Expand Down
4 changes: 2 additions & 2 deletions cypress/e2e/po/side-bars/user-menu.po.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,11 @@ export default class UserMenuPo extends ComponentPo {
}

/**
* label: 'Preferences', 'Account & API Keys', or 'Log Out'
* label: 'Preferences', 'Account and API Keys', or 'Log Out'
* @param label
* @returns
*/
clickMenuItem(label: 'Preferences' | 'Account & API Keys' | 'Log Out') {
clickMenuItem(label: 'Preferences' | 'Account and API Keys' | 'Log Out') {
this.ensureOpen().then(() => {
return this.getMenuItems().contains(label).click();
});
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/tests/pages/manager/cluster-manager.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ describe('Cluster Manager', { testIsolation: 'off', tags: ['@manager', '@adminUs
clusterDetail.selectTab(tabbedPo, '[data-testid="btn-related"]');

clusterDetail.waitForPage(undefined, 'related');
clusterDetail.referredToList().details('Mgmt', 2).should('include.text', 'local');
clusterDetail.referredToList().details('Management', 2).should('include.text', 'local');
});

it('can navigate to Cluster Provisioning Log Page', () => {
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/tests/pages/user-menu/account-api-keys.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ describe.skip('Account and API Keys', { testIsolation: 'off' }, () => {

HomePagePo.goTo();
homePage.waitForPage();
userMenu.clickMenuItem('Account & API Keys');
userMenu.clickMenuItem('Account and API Keys');
accountPage.waitForPage();
accountPage.checkIsCurrentPage();
accountPage.title();
Expand Down

0 comments on commit 6dd5a17

Please sign in to comment.