forked from RocketChat/Rocket.Chat
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: login buttons remain visible until refresh after disabling authe…
…ntication service (RocketChat#31371)
- Loading branch information
1 parent
319f05e
commit 9a6e9b4
Showing
10 changed files
with
120 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
'@rocket.chat/core-services': patch | ||
'@rocket.chat/ddp-streamer': patch | ||
'@rocket.chat/meteor': patch | ||
--- | ||
|
||
Fixed an issue that caused login buttons to not be reactively removed from the login page when the related authentication service was disabled by an admin. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import { Registration } from './page-objects'; | ||
import { setSettingValueById } from './utils/setSettingValueById'; | ||
import { test, expect } from './utils/test'; | ||
|
||
test.describe('OAuth', () => { | ||
let poRegistration: Registration; | ||
|
||
test.beforeEach(async ({ page }) => { | ||
poRegistration = new Registration(page); | ||
|
||
await page.goto('/home'); | ||
}); | ||
|
||
test('Login Page', async ({ api }) => { | ||
await test.step('expect OAuth button to be visible', async () => { | ||
await expect((await setSettingValueById(api, 'Accounts_OAuth_Google', true)).status()).toBe(200); | ||
await expect(poRegistration.btnLoginWithGoogle).toBeVisible({ timeout: 10000 }); | ||
}); | ||
|
||
await test.step('expect OAuth button to not be visible', async () => { | ||
await expect((await setSettingValueById(api, 'Accounts_OAuth_Google', false)).status()).toBe(200); | ||
|
||
await expect(poRegistration.btnLoginWithGoogle).not.toBeVisible({ timeout: 10000 }); | ||
}); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters