Skip to content

Commit 981c599

Browse files
authored
Merge pull request #19965 from mozilla/FXA-12791-2
fix cms smoke tests
2 parents dae8ad7 + 7171bf2 commit 981c599

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

packages/functional-tests/tests/cms/cms-2fa.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ test.describe('severity-1 #smoke', () => {
5656
await expect(button).toHaveCSS('--cta-bg', buttonColor);
5757
await expect(button).toHaveCSS('--cta-border', buttonColor);
5858
await expect(button).toHaveCSS('--cta-active', buttonColor);
59-
await expect(button).toHaveCSS('--cta-disabled', `${buttonColor}60`);
59+
await expect(button).toHaveCSS('--cta-disabled', buttonColor);
6060
}
6161

6262
test.beforeAll(async ({ target }) => {

packages/functional-tests/tests/cms/cms.spec.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ test.describe('severity-1 #smoke', () => {
5555
await expect(button).toHaveCSS('--cta-bg', buttonColor);
5656
await expect(button).toHaveCSS('--cta-border', buttonColor);
5757
await expect(button).toHaveCSS('--cta-active', buttonColor);
58-
await expect(button).toHaveCSS('--cta-disabled', `${buttonColor}60`);
58+
await expect(button).toHaveCSS('--cta-disabled', buttonColor);
5959
}
6060

6161
test.beforeAll(async ({ target }) => {
@@ -160,11 +160,16 @@ test.describe('severity-1 #smoke', () => {
160160
buttonColor: '#4845D2',
161161
buttonText: 'Continue',
162162
});
163-
await signin.passwordTextbox.fill(credentials.password);
164163
submitButton = page.getByRole('button', {
165164
name: 'Continue',
166165
exact: true,
167166
});
167+
// expect button to be disabled until password fields are filled
168+
await expect(submitButton).toBeDisabled();
169+
await expect(submitButton).toHaveCSS('opacity', '0.5');
170+
await signin.passwordTextbox.fill(credentials.password);
171+
await expect(submitButton).toBeEnabled();
172+
await expect(submitButton).toHaveCSS('opacity', '1');
168173
await submitButton.click();
169174

170175
await assertCmsCustomization(page, {

0 commit comments

Comments
 (0)