0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00

Fixed Playwright tests for new Stripe connect flow

no issue
This commit is contained in:
Simon Backx 2023-01-30 17:08:43 +01:00
parent 8e66edee2b
commit aea127b17f
2 changed files with 2 additions and 2 deletions

View file

@ -1,7 +1,7 @@
<header class="modal-header" data-test-modal="webhook-form" {{will-destroy this.reset}}>
<h1 data-test-text="title">Connect with Stripe</h1>
</header>
<button class="close" href title="Close" type="button" {{on "click" this.closeModal}} {{on "mouseDown" (optional this.noop)}}>
<button class="close" href title="Close" type="button" {{on "click" this.closeModal}} {{on "mouseDown" (optional this.noop)}} data-test-button="close-stripe-connect">
{{svg-jar "close"}}
</button>

View file

@ -107,7 +107,7 @@ const setupStripe = async (page, stripConnectIntegrationToken) => {
}
await page.getByPlaceholder('Paste your secure key here').first().fill(stripConnectIntegrationToken);
await page.getByRole('button', {name: 'Save Stripe settings'}).click();
await page.getByRole('button', {name: 'OK'}).click();
await page.locator('[data-test-button="close-stripe-connect"]').click();
};
// Setup Mailgun with fake data, for Ghost Admin to allow bulk sending