Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions packages/manager/.changeset/pr-13438-tests-1772047855280.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@linode/manager": Tests
---

Fix Cypress test failures following v1.159.0 release ([#13438](https://github.com/linode/manager/pull/13438))
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ describe('Notification Channel Listing Page β€” Access Control', () => {
mockAppendFeatureFlags(flags);
cy.visitWithLogin('/linodes');

ui.nav.findItemByTitle('Alerts').scrollIntoView();
ui.nav.findItemByTitle('Alerts').should('be.visible').click();
ui.tabList
.findTabByTitle('Notification Channels')
Expand All @@ -62,6 +63,7 @@ describe('Notification Channel Listing Page β€” Access Control', () => {
mockAppendFeatureFlags(flags);
cy.visitWithLogin('/linodes');

ui.nav.findItemByTitle('Alerts').scrollIntoView();
ui.nav.findItemByTitle('Alerts').should('be.visible').click();

// Tab should not render at all
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,21 +93,29 @@ describe('linode landing checks', () => {

it('checks the landing page side menu items', () => {
cy.findByTitle('Akamai - Cloud Manager').should('be.visible');
cy.findByTestId('menu-item-Linodes').should('be.visible');
cy.findByTestId('menu-item-Volumes').should('be.visible');
cy.findByTestId('menu-item-NodeBalancers').should('be.visible');
cy.findByTestId('menu-item-Firewalls').should('be.visible');
cy.findByTestId('menu-item-StackScripts').should('be.visible');
cy.findByTestId('menu-item-Images').should('be.visible');
cy.findByTestId('menu-item-Domains').should('be.visible');
cy.findByTestId('menu-item-Kubernetes').should('be.visible');
cy.findByTestId('menu-item-Object Storage').should('be.visible');
cy.findByTestId('menu-item-Longview').should('be.visible');
cy.findByTestId('menu-item-Marketplace').should('be.visible');
cy.findByTestId('menu-item-Billing').scrollIntoView();
cy.findByTestId('menu-item-Billing').should('be.visible');
cy.findByTestId('menu-item-Account Settings').should('be.visible');
cy.findByTestId('menu-item-Help & Support').should('be.visible');

const expectedNavItems = [
'Linodes',
'Volumes',
'NodeBalancers',
'Firewalls',
'StackScripts',
'Images',
'Domains',
'Kubernetes',
'Object Storage',
'Longview',
'Quick Deploy Apps',
'Partner Referrals',
'Billing',
'Account Settings',
'Help & Support',
];

expectedNavItems.forEach((navItem) => {
ui.nav.findItemByTitle(navItem).scrollIntoView();
ui.nav.findItemByTitle(navItem).should('be.visible');
});
});

it('checks the landing top menu items', () => {
Expand Down Expand Up @@ -271,7 +279,7 @@ describe('linode landing checks', () => {
cy.get(commonLocators.topMenuCreateItemsLocator.marketplaceOneClickLink)
.should('be.visible')
.within(() => {
cy.findByText('Marketplace').should('be.visible');
cy.findByText('Quick Deploy Apps').should('be.visible');
cy.findByText('Deploy applications with ease').should('be.visible');
});
});
Expand Down
Loading