-
Notifications
You must be signed in to change notification settings - Fork 11k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a79bd62
commit 636f9da
Showing
3 changed files
with
34 additions
and
0 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
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(); | ||
// }); | ||
}); | ||
}); |
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