From a9e54cfa1db571b07c9b08d6222b21420510cffb Mon Sep 17 00:00:00 2001 From: caxewsh Date: Sat, 19 Oct 2024 00:53:17 +0200 Subject: [PATCH] chore(deps): update json schema and optimize db request --- .maestro/launchGame.yml | 8 ++------ .maestro/schema.json | 8 ++++++-- .maestro/trashButton.yml | 4 ++-- screens/Gamescreen.js | 2 +- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.maestro/launchGame.yml b/.maestro/launchGame.yml index 197c91d..03ddb5e 100644 --- a/.maestro/launchGame.yml +++ b/.maestro/launchGame.yml @@ -1,8 +1,7 @@ appId: com.axe.l.r.drinkup --- - launchApp -- tapOn: # Open the server in dev build if possible - point: "50%,26%" + - tapOn: "LANCER LA PARTIE" - assertVisible: "LOBBY" @@ -14,13 +13,10 @@ appId: com.axe.l.r.drinkup - inputRandomPersonName - pressKey: Enter - - tapOn: "ON EST PRET !" - repeat: while: notVisible: "Classement" commands: - - tapOn: "TOUR SUIVANT" - - + - tapOn: "TOUR SUIVANT" \ No newline at end of file diff --git a/.maestro/schema.json b/.maestro/schema.json index ce9c86e..5c84897 100644 --- a/.maestro/schema.json +++ b/.maestro/schema.json @@ -91,7 +91,7 @@ "enum": [ "home", "lock", - "enter", + "Enter", "backspace", "volume up", "volume down", @@ -129,7 +129,11 @@ } } }, - "required": ["commands", "times"] + "required": ["commands"], + "oneOf": [ + { "required": ["times"] }, + { "required": ["while"] } + ] }, "runFlow": { "title": "Runs a flow from a specified file.", diff --git a/.maestro/trashButton.yml b/.maestro/trashButton.yml index a413225..df49c57 100644 --- a/.maestro/trashButton.yml +++ b/.maestro/trashButton.yml @@ -6,13 +6,13 @@ appId: com.axe.l.r.drinkup - assertVisible: "LOBBY" - tapOn: "Nom du joueur" - inputText: "test" -- pressKey: enter +- pressKey: Enter - assertVisible: "test" - tapOn: id: "trashButton" - assertNotVisible: "test" - tapOn: "Nom du joueur" - inputText: "test" -- pressKey: enter +- pressKey: Enter - assertVisible: "test" - stopApp \ No newline at end of file diff --git a/screens/Gamescreen.js b/screens/Gamescreen.js index 0ed48e6..032d219 100644 --- a/screens/Gamescreen.js +++ b/screens/Gamescreen.js @@ -29,7 +29,7 @@ export default function Gamescreen() { const fetchQuestionsAndPlayers = async () => { setIsLoading(true); try { - let { data: questionsData, error } = await supabase.from("questionsV3").select("*"); + let { data: questionsData, error } = await supabase.from("questionsV3").select("Theme, Questions, severity"); if (error) throw error; if (!Array.isArray(questionsData)) {