-
Notifications
You must be signed in to change notification settings - Fork 127
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
Nicolas Burtey
committed
Jul 16, 2023
1 parent
0536ce2
commit 74c6901
Showing
2 changed files
with
21 additions
and
6 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 |
---|---|---|
@@ -1,4 +1,3 @@ | ||
import { sleep } from "../app/utils/sleep" | ||
import { i18nObject } from "../app/i18n/i18n-util" | ||
import { loadLocale } from "../app/i18n/i18n-util.sync" | ||
import { | ||
|
@@ -134,19 +133,34 @@ describe("Login Flow", () => { | |
it("log out", async () => { | ||
await clickOnSetting(LL.AccountScreen.logOutAndDeleteLocalData()) | ||
|
||
await sleep(1000) | ||
|
||
const iUnderstandButton = await $(selector(LL.AccountScreen.IUnderstand(), "Button")) | ||
await iUnderstandButton.waitForDisplayed({ timeout }) | ||
await iUnderstandButton.click() | ||
|
||
await sleep(1000) | ||
|
||
const okButton = await $(selector(LL.common.ok(), "Button")) | ||
await okButton.waitForDisplayed({ timeout }) | ||
await okButton.click() | ||
}) | ||
|
||
it("set staging environment again", async () => { | ||
const buildButton = await $(selector("logo-button", "Other")) | ||
await buildButton.waitForDisplayed({ timeout }) | ||
await buildButton.click() | ||
await browser.pause(100) | ||
await buildButton.click() | ||
await browser.pause(100) | ||
await buildButton.click() | ||
await browser.pause(100) | ||
|
||
// scroll down for small screens | ||
await waitTillButtonDisplayed("logout button") | ||
await scrollDown() | ||
await clickButton("Staging Button") | ||
await clickButton("Save Changes") | ||
|
||
await clickBackButton() | ||
}) | ||
|
||
it("log back in", async () => { | ||
const emailLink = await $(selector("email-button", "Other")) | ||
await emailLink.waitForDisplayed({ timeout }) | ||
|
@@ -159,7 +173,7 @@ describe("Login Flow", () => { | |
await emailInput.click() | ||
await emailInput.setValue(email) | ||
await clickButton(LL.EmailRegistrationInitiateScreen.send()) | ||
// [email protected] | ||
|
||
const emailRes = await getSecondEmail(inboxId) | ||
if (!emailRes) throw new Error("No email response") | ||
|
||
|