-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MS] Create default workspaces and files in dev and tests
- Loading branch information
Showing
14 changed files
with
107 additions
and
10 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
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
Binary file not shown.
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,31 @@ | ||
# Parsec Cloud (https://parsec.cloud) Copyright (c) BUSL-1.1 2016-present Scille SAS | ||
|
||
import argparse | ||
import sys | ||
import pathlib | ||
|
||
if __name__ == "__main__": | ||
parser = argparse.ArgumentParser() | ||
parser.add_argument( | ||
"-i", "--input", type=pathlib.Path, required=True, help="File to convert to Uint8Array" | ||
) | ||
parser.add_argument("--name", type=str, required=True, help="Name of the variable") | ||
parser.add_argument("-o", "--output", default=sys.stdout, help="Where to put the result") | ||
args = parser.parse_args() | ||
content = args.input.read_bytes() | ||
array = ",".join([str(c) for c in content]) | ||
result = f""" | ||
// Parsec Cloud (https://parsec.cloud) Copyright (c) BUSL-1.1 2016-present Scille SAS | ||
/* | ||
Generated automatically with {sys.argv[0]} | ||
*/ | ||
export const {args.name} = new Uint8Array([{array}]); | ||
""" | ||
|
||
if args.output is sys.stdout: | ||
print(result) | ||
else: | ||
with open(args.output, "w+") as fd: | ||
fd.write(result) |
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
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 @@ | ||
A simple text file |
Binary file not shown.
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 |
---|---|---|
|
@@ -50,7 +50,7 @@ msTest('Greet user process', async ({ usersPage, secondTab }) => { | |
await expect(greetModal).toHaveWizardStepper(['Host code', 'Guest code', 'Contact details'], 0); | ||
await expect(greetTitle).toHaveText('Share your code'); | ||
await expect(greetSubtitle).toHaveText('Give the code below to the guest.'); | ||
const greetCode = await greetContent.locator('.host-code').locator('.code').textContent() ?? ''; | ||
const greetCode = (await greetContent.locator('.host-code').locator('.code').textContent()) ?? ''; | ||
expect(greetCode).toMatch(/^[A-Z0-9]{4}$/); | ||
|
||
// Check the enter code page from the joiner and select the code | ||
|
@@ -62,7 +62,7 @@ msTest('Greet user process', async ({ usersPage, secondTab }) => { | |
// Check the provide code page from the joiner and retrieve the code | ||
await expect(joinTitle).toHaveText('Share your code'); | ||
await expect(joinModal).toHaveWizardStepper(['Host code', 'Guest code', 'Contact details', 'Authentication'], 1); | ||
const joinCode = await joinContent.locator('.guest-code').locator('.code').textContent() ?? ''; | ||
const joinCode = (await joinContent.locator('.guest-code').locator('.code').textContent()) ?? ''; | ||
expect(joinCode).toMatch(/^[A-Z0-9]{4}$/); | ||
|
||
// Check the enter code page from the greeter and select the code | ||
|
@@ -82,9 +82,7 @@ msTest('Greet user process', async ({ usersPage, secondTab }) => { | |
await expect(joinModal).toHaveWizardStepper(['Host code', 'Guest code', 'Contact details', 'Authentication'], 2); | ||
await expect(joinNextButton).toHaveDisabledAttribute(); | ||
await fillIonInput(joinModal.locator('#get-user-info').locator('ion-input').nth(0), 'Gordon Freeman'); | ||
await expect(joinModal.locator('#get-user-info').locator('ion-input').nth(1).locator('input')).toHaveValue( | ||
'[email protected]', | ||
); | ||
await expect(joinModal.locator('#get-user-info').locator('ion-input').nth(1).locator('input')).toHaveValue('[email protected]'); | ||
await joinNextButton.click(); | ||
await expect(joinNextButton).toBeHidden(); | ||
await expect(joinModal.locator('.spinner-container')).toBeVisible(); | ||
|
@@ -166,6 +164,7 @@ msTest('Greet user process', async ({ usersPage, secondTab }) => { | |
// const choices = userGreetModal.locator('.modal-content').locator('.code:visible'); | ||
// await choices.nth(0).click(); | ||
|
||
// eslint-disable-next-line max-len | ||
// await expect(userGreetModal.page()).toShowToast('You did not select the correct code. Please restart the onboarding process.', 'Error'); | ||
// await expect(title).toHaveText('Onboard a new user'); | ||
// }); | ||
|