Skip to content

Commit 7b504a7

Browse files
authored
test: [DBAAS1-1497] Fix cypress test failing for hostname endpoint changes (#13457)
* test: [DBAAS1-1497] Fix update database tests for failing hostname changes * Added changeset: Fix cypress test failing for hostname endpoint changes
1 parent 66ef4b0 commit 7b504a7

2 files changed

Lines changed: 5 additions & 10 deletions

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@linode/manager": Tests
3+
---
4+
5+
Fix cypress test failing for hostname endpoint changes ([#13457](https://github.com/linode/manager/pull/13457))

packages/manager/cypress/e2e/core/databases/update-database.spec.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,6 @@ const suspendCluster = (label: string) => {
237237
* @param initialLabel - cluster name
238238
* @param updateAttemptLabel - cluster updated name
239239
* @param errorMessage - error thrown for updating a suspended/resuming cluster
240-
* @param hostnameRegex - connection settings hostname
241240
* @param allowedIp - ip for manage access actions
242241
*/
243242

@@ -247,7 +246,6 @@ const validateSuspendResume = (
247246
initialLabel: string,
248247
updateAttemptLabel: string,
249248
errorMessage: string,
250-
hostnameRegex: RegExp,
251249
allowedIp: string
252250
) => {
253251
cy.visit(`/databases/${engine}/${id}`);
@@ -263,8 +261,6 @@ const validateSuspendResume = (
263261
.click();
264262

265263
cy.findByText('Connection Details');
266-
// DBaaS hostnames are not available when database/cluster is suspended or resuming.
267-
cy.findByText(hostnameRegex).should('be.visible');
268264

269265
// DBaaS passwords cannot be revealed when database/cluster is suspended or resuming.
270266
ui.cdsButton.findButtonByTitle('Show').should('be.enabled');
@@ -647,8 +643,6 @@ describe('Update database clusters', () => {
647643

648644
const errorMessage =
649645
'Your database is suspended; please wait until it becomes active to perform this operation.';
650-
const hostnameRegex =
651-
/your hostnames? will appear here once (it is|they are) available./i;
652646

653647
mockGetAccount(accountFactory.build()).as('getAccount');
654648
mockGetDatabase(database).as('getDatabase');
@@ -719,7 +713,6 @@ describe('Update database clusters', () => {
719713
initialLabel,
720714
updateAttemptLabel,
721715
errorMessage,
722-
hostnameRegex,
723716
allowedIp
724717
);
725718
});
@@ -756,8 +749,6 @@ describe('Update database clusters', () => {
756749
});
757750

758751
const errorMessage = `Your database is ${action}; please wait until it becomes active to perform this operation.`;
759-
const hostnameRegex =
760-
/your hostnames? will appear here once (it is|they are) available./i;
761752

762753
mockGetAccount(accountFactory.build()).as('getAccount');
763754
mockGetDatabases([database]).as('getDatabases');
@@ -846,7 +837,6 @@ describe('Update database clusters', () => {
846837
initialLabel,
847838
updateAttemptLabel,
848839
errorMessage,
849-
hostnameRegex,
850840
allowedIp
851841
);
852842
});

0 commit comments

Comments
 (0)