Skip to content

Commit

Permalink
Release build 6.31.0 [ci release]
Browse files Browse the repository at this point in the history
  • Loading branch information
mgurgel authored and github-actions[bot] committed Nov 8, 2024
1 parent 6018aa5 commit 1733ee5
Show file tree
Hide file tree
Showing 13 changed files with 500 additions and 90 deletions.
6 changes: 1 addition & 5 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
- Add API manipulation feature (#1207)
- [Autofill password import] Misc fixes (#1184)
- ntp: favorites components (#1208)
- Ignore lint PRs in git-blame (#1205)
- Introduce Prettier (#1198)
- Waiting for import status on macOS (#1180)
100 changes: 76 additions & 24 deletions Sources/ContentScopeScripts/dist/pages/onboarding/js/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
import { TestTransportConfig } from '@duckduckgo/messaging';

/**
* @typedef {import('../../../../types/release-notes').UpdateMessage} UpdateMessage
*/

export function mockTransport() {
return new TestTransportConfig({
notify(_msg) {
window.__playwright_01?.mocks?.outgoing?.push?.({ payload: structuredClone(_msg) });
const msg = /** @type {any} */ (_msg);
switch (msg.method) {
default: {
console.warn('unhandled notification', msg);
}
}
},
request(_msg) {
window.__playwright_01?.mocks?.outgoing?.push?.({ payload: structuredClone(_msg) });
const msg = /** @type {any} */ (_msg);
switch (msg.method) {
case 'init': {
return Promise.resolve({
stepDefinitions: {},
exclude: [],
order: 'v3',
locale: 'en',
env: 'development',
});
}
case 'requestImport':
case 'requestSetAsDefault':
case 'requestDockOptIn': {
return Promise.resolve({
enabled: true,
});
}
default:
return Promise.resolve(null);
}
},
subscribe(_msg, callback) {
window.__playwright_01?.mocks?.outgoing?.push?.({ payload: structuredClone(_msg) });

callback(null);

return () => {
// any cleanup
};
},
});
}
100 changes: 76 additions & 24 deletions build/integration/pages/onboarding/js/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 1733ee5

Please sign in to comment.