mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-10 23:36:14 -05:00
Fixed email suppressed page portal tests
- tests were failing due to copy changes that made the test selectors fail to fetch the element - for future, we should switch to using test ids here instead of text as they can easily change causing these failures
This commit is contained in:
parent
109bce8096
commit
960250e99e
2 changed files with 3 additions and 2 deletions
|
@ -59,6 +59,7 @@ export default function EmailSuppressedPage() {
|
|||
</div>
|
||||
|
||||
<ActionButton
|
||||
dataTestId={'resubscribe-email'}
|
||||
classes="gh-portal-confirm-button"
|
||||
onClick={handleSubmit}
|
||||
disabled={isRunning}
|
||||
|
|
|
@ -6,8 +6,8 @@ const setup = (overrides) => {
|
|||
const {mockOnActionFn, ...utils} = render(
|
||||
<EmailSuppressedPage />
|
||||
);
|
||||
const resubscribeBtn = utils.queryByRole('button', {name: 'Resubscribe your email'});
|
||||
const title = utils.queryByText('Email disabled');
|
||||
const resubscribeBtn = utils.queryByRole('button', {name: 'Re-enable emails'});
|
||||
const title = utils.queryByText('Emails disabled');
|
||||
|
||||
return {
|
||||
resubscribeBtn,
|
||||
|
|
Loading…
Add table
Reference in a new issue