Skip to content

Commit

Permalink
Edge deploy: Fixed adding a dev changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
avi12 committed Jul 13, 2021
1 parent 44ac768 commit b8a99b0
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions src/stores/edge/edge-deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const gSelectors = {
buttonSubmissionUpdate: "[data-l10n-key=Common_Text_Update]",
buttonCancelOverview: "[data-l10n-key=Common_Text_Cancel]",
buttonConfirm: "[data-l10n-key=Common_Text_Confirm]",
inputDevChangelog: "textarea"
inputDevChangelog: `textarea[name="certificationNotes"]`
};

function getBaseDashboardUrl(extId: string) {
Expand Down Expand Up @@ -228,18 +228,18 @@ async function addChangelogIfNeeded({
page: Page;
isVerbose: boolean;
}) {
if (devChangelog) {
await page.waitForSelector(gSelectors.inputDevChangelog);
await page.type(gSelectors.inputDevChangelog, devChangelog);

if (isVerbose) {
console.log(
getVerboseMessage({
store,
message: `Added changelog for reviewers: ${devChangelog}`
})
);
}
if (!devChangelog) {
return;
}
await page.waitForSelector(gSelectors.inputDevChangelog);
await page.type(gSelectors.inputDevChangelog, devChangelog);
if (isVerbose) {
console.log(
getVerboseMessage({
store,
message: `Added changelog for reviewers: ${devChangelog}`
})
);
}
}

Expand Down

0 comments on commit b8a99b0

Please sign in to comment.