Skip to content

Commit 1909f03

Browse files
Fix: Correct JSX closing tag in MainNavigator
This commit fixes a typo in `frontend/navigation/MainNavigator.js` where a `</View>` tag was incorrectly written as `</V>`. This syntax error was causing the build to fail in the CI/CD pipeline.
1 parent d0fd728 commit 1909f03

File tree

3 files changed

+10
-26
lines changed

3 files changed

+10
-26
lines changed

frontend/navigation/MainNavigator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ const MainNavigator = () => {
5151
<View style={[styles.tabItem, focused && styles.tabItemFocused]}>
5252
<Ionicons name={focused ? "person-circle" : "person-circle-outline"} color={focused ? colors.brandAccent : colors.textSecondary} size={24} />
5353
<Text style={[styles.tabLabel, focused && styles.tabLabelFocused]}>Account</Text>
54-
</V>
54+
</View>
5555
),
5656
}}
5757
/>

jules-scratch/verification/verify_home_screen.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,16 @@
11
import asyncio
22
import random
33
import string
4-
54
from playwright.async_api import async_playwright, expect
65

7-
86
async def main():
97
async with async_playwright() as p:
108
browser = await p.chromium.launch()
119
context = await browser.new_context()
1210
page = await context.new_page()
1311

1412
# Generate random user credentials
15-
random_suffix = "".join(
16-
random.choices(string.ascii_lowercase + string.digits, k=8)
17-
)
13+
random_suffix = ''.join(random.choices(string.ascii_lowercase + string.digits, k=8))
1814
email = f"testuser_{random_suffix}@example.com"
1915
password = "securepassword123"
2016
name = "Test User"
@@ -43,6 +39,5 @@ async def main():
4339

4440
await browser.close()
4541

46-
4742
if __name__ == "__main__":
4843
asyncio.run(main())
Lines changed: 8 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,22 @@
11
import random
22
import string
33
import time
4-
54
from selenium import webdriver
65
from selenium.webdriver.common.by import By
7-
from selenium.webdriver.support import expected_conditions as EC
86
from selenium.webdriver.support.ui import WebDriverWait
9-
7+
from selenium.webdriver.support import expected_conditions as EC
108

119
def main():
1210
options = webdriver.ChromeOptions()
13-
options.add_argument("--headless")
14-
options.add_argument("--no-sandbox")
15-
options.add_argument("--disable-dev-shm-usage")
11+
options.add_argument('--headless')
12+
options.add_argument('--no-sandbox')
13+
options.add_argument('--disable-dev-shm-usage')
1614

1715
driver = webdriver.Chrome(options=options)
1816

1917
try:
2018
# Generate random user credentials
21-
random_suffix = "".join(
22-
random.choices(string.ascii_lowercase + string.digits, k=8)
23-
)
19+
random_suffix = ''.join(random.choices(string.ascii_lowercase + string.digits, k=8))
2420
email = f"testuser_{random_suffix}@example.com"
2521
password = "securepassword123"
2622
name = "Test User"
@@ -30,20 +26,14 @@ def main():
3026

3127
# Wait for the "Don't have an account? Sign Up" button to be clickable
3228
signup_button = WebDriverWait(driver, 30).until(
33-
EC.element_to_be_clickable(
34-
(By.XPATH, "//*[contains(text(), 'Don\\'t have an account? Sign Up')]")
35-
)
29+
EC.element_to_be_clickable((By.XPATH, "//*[contains(text(), 'Don\\'t have an account? Sign Up')]"))
3630
)
3731
signup_button.click()
3832

3933
# Fill in the signup form
40-
WebDriverWait(driver, 10).until(
41-
EC.presence_of_element_located((By.XPATH, "//*[@placeholder='Name']"))
42-
).send_keys(name)
34+
WebDriverWait(driver, 10).until(EC.presence_of_element_located((By.XPATH, "//*[@placeholder='Name']"))).send_keys(name)
4335
driver.find_element(By.XPATH, "//*[@placeholder='Email']").send_keys(email)
44-
driver.find_element(By.XPATH, "//*[@placeholder='Password']").send_keys(
45-
password
46-
)
36+
driver.find_element(By.XPATH, "//*[@placeholder='Password']").send_keys(password)
4737

4838
# Submit the form
4939
# It's better to wait for the element to be clickable
@@ -63,6 +53,5 @@ def main():
6353
finally:
6454
driver.quit()
6555

66-
6756
if __name__ == "__main__":
6857
main()

0 commit comments

Comments
 (0)