Skip to content
Merged
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-12954-tests-1759436361576.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@linode/manager": Tests
---

Fix failing maintenance policy test in DevCloud related to hardcoded region ID ([#12954](https://github.com/linode/manager/pull/12954))
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { linodeCreatePage } from 'support/ui/pages';
import { cleanUp } from 'support/util/cleanup';
import { createTestLinode } from 'support/util/linodes';
import { randomLabel } from 'support/util/random';
import { extendRegion } from 'support/util/regions';
import { chooseRegion, extendRegion } from 'support/util/regions';

import {
MAINTENANCE_POLICY_NOT_AVAILABLE_IN_REGION_TEXT,
Expand Down Expand Up @@ -182,7 +182,7 @@ describe('maintenance policy region support - Linode Details > Settings', () =>
// eu-central is known to support maintenance policies
const linodeCreatePayload = createLinodeRequestFactory.build({
label: randomLabel(),
region: 'eu-central', // Frankfurt, DE - known to support maintenance policies
region: chooseRegion({ capabilities: ['Maintenance Policy'] }).id,
});

cy.defer(() => createTestLinode(linodeCreatePayload)).then((linode) => {
Expand Down