-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Overlapping] Enable undercut #1357
Conversation
Deploying carbon-app-sei with Cloudflare Pages
|
Deploying carbon-app with Cloudflare Pages
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Only thing to note is if the overlapping strategy has a defined budget, this budget (and anchor) won't be populated when undercutting, which is the same behaviour as overlapping duplicate but different from recurring/disposable undercut/duplicate.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM just one change request for the e2e test
- Currently, the create/duplicate/undercut tests all override the create/form.png screenshot. Can you change the submit method of CreateStrategyDriver to something like this
async submit(type: StrategyCase) {
const btn = this.page.getByText('Create Strategy');
if (shouldTakeScreenshot) {
const mainMenu = new MainMenuDriver(this.page);
await mainMenu.hide();
await waitTooltipsClose(this.page);
const form = this.getForm();
const path = screenshotPath(this.testCase, type, 'form');
await screenshot(form, path);
await mainMenu.show();
}
try {
await waitFor(this.page, 'approve-warnings', 2_000);
if (await this.page.isVisible('[data-testid=approve-warnings]')) {
await this.page.getByTestId('approve-warnings').click();
}
await btn.click();
} catch {
await btn.click({ timeout: 1_000 });
}
}
and then set they type to the strategy type.
fix #1325
Enable undercut for overlapping strategy
Reduce spread by 0.1%.
Test cases :
This work if strategy :