Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/functional-tests/tests/cms/cms-2fa.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ test.describe('severity-1 #smoke', () => {
await expect(button).toHaveCSS('--cta-bg', buttonColor);
await expect(button).toHaveCSS('--cta-border', buttonColor);
await expect(button).toHaveCSS('--cta-active', buttonColor);
await expect(button).toHaveCSS('--cta-disabled', `${buttonColor}60`);
await expect(button).toHaveCSS('--cta-disabled', buttonColor);
}

test.beforeAll(async ({ target }) => {
Expand Down
9 changes: 7 additions & 2 deletions packages/functional-tests/tests/cms/cms.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ test.describe('severity-1 #smoke', () => {
await expect(button).toHaveCSS('--cta-bg', buttonColor);
await expect(button).toHaveCSS('--cta-border', buttonColor);
await expect(button).toHaveCSS('--cta-active', buttonColor);
await expect(button).toHaveCSS('--cta-disabled', `${buttonColor}60`);
await expect(button).toHaveCSS('--cta-disabled', buttonColor);
}

test.beforeAll(async ({ target }) => {
Expand Down Expand Up @@ -160,11 +160,16 @@ test.describe('severity-1 #smoke', () => {
buttonColor: '#4845D2',
buttonText: 'Continue',
});
await signin.passwordTextbox.fill(credentials.password);
submitButton = page.getByRole('button', {
name: 'Continue',
exact: true,
});
// expect button to be disabled until password fields are filled
await expect(submitButton).toBeDisabled();
await expect(submitButton).toHaveCSS('opacity', '0.5');
await signin.passwordTextbox.fill(credentials.password);
await expect(submitButton).toBeEnabled();
await expect(submitButton).toHaveCSS('opacity', '1');
await submitButton.click();

await assertCmsCustomization(page, {
Expand Down