Skip to content

Chore/prettier check #459

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Changes from 1 commit
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
0a9c079
i have done [UI] Add a compilation counter with timestamp #244
ammar450 Feb 8, 2025
51f68ac
revert package.json change
Feb 13, 2025
d846a76
test: add navigation test case
felixerdy Apr 14, 2025
ee4301d
Merge pull request #452 from sensebox/test/navigation
mariopesch Apr 15, 2025
fe415cf
feat: Improved filename generation for compiled projects
georgi-s Apr 16, 2025
45aeaae
Merge remote-tracking branch 'origin/development' into counter-with-t…
georgi-s Apr 17, 2025
a519a76
refactor: modernize compile component and improve file handling
georgi-s Apr 17, 2025
7dc9379
chore(deps): remove yarn.lock and update compilation dialog
georgi-s Apr 24, 2025
6814a78
style: format codebase with Prettier
georgi-s Apr 24, 2025
9bbeb3c
feat: Enhanced BlocklyWindow component with Backpack animation
georgi-s Apr 24, 2025
ca0d4a6
fix: Set fixed transformation point for Blockly animations
georgi-s Apr 25, 2025
cb3dc96
Merge pull request #460 from sensebox/feat/backpack-wiggle-animation
Thiemann96 Jun 5, 2025
c85d4a2
add arduino_functions block restriction and improvement of board-spec…
georgi-s Apr 15, 2025
876117b
Restriction of interaction possibilities for the arduino_functions block
georgi-s Apr 15, 2025
37bd9b8
Improved backpack initialization and management
georgi-s Apr 15, 2025
6cb067b
fix: Make Cypress test for reset button language-independent
georgi-s Apr 15, 2025
3513c00
fix: Make Cypress test for reset button language-independent
georgi-s Apr 15, 2025
95a4e89
feat: Add MUI alerts for backpack operations
georgi-s Apr 23, 2025
de77b83
Merge branch 'feat/add-confirmation-of-successful-buffering-in-backpa…
Thiemann96 Jun 5, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
test: add navigation test case
  • Loading branch information
felixerdy committed Apr 14, 2025
commit d846a765b21f6c11a7e5e8203cb7f049d47e3392
28 changes: 27 additions & 1 deletion cypress/e2e/blockly.cy.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/// <reference types="cypress" />

Check failure on line 1 in cypress/e2e/blockly.cy.js

View workflow job for this annotation

GitHub Actions / cypress-run

Failed Test: Blockly Editor Page Tests [Blockly] navigates to tutorial and back

Blockly Editor Page Tests [Blockly] navigates to tutorial and back: AssertionError: Timed out retrying after 4000ms: Expected to find element: `img[alt="Sensebox ESP"]`, but never found it. at Context.eval (webpack://blockly-react/./cypress/e2e/blockly.cy.js:53:38) - AssertionError: Timed out retrying after 4000ms: Expected to find element: `img[alt="Sensebox ESP"]`, but never found it. at Context.eval (webpack://blockly-react/./cypress/e2e/blockly.cy.js:53:38)

describe("Blockly Editor Page Tests", () => {
it("[Blockly] visits the editor page", () => {
Expand All @@ -25,7 +25,33 @@
cy.visit("/user/login");
});

/// <reference types="cypress" />
it("[Blockly] navigates to tutorial and back", () => {
cy.visit("/");
cy.get('img[alt="Sensebox ESP"]').click();

// get a button that has an SVG with the class "fa-bars" inside it
// this is the button that opens the menu
const menuButton = cy.get("button").find("svg.fa-bars").parents("button");

// click the button
menuButton.click();

// click the a with href "/tutorial"
cy.get('a[href="/tutorial"]').click();
cy.wait(1000);
cy.url().should("include", "/tutorial");
cy.wait(1000);

// click the button
menuButton.click();

// click the a with href "/" and deep inside it an span containing "Blockly"
cy.get('a[href="/"]').find("span").contains("Blockly").parents("a").click();
cy.wait(1000);
cy.url().should("include", "/");

cy.get('img[alt="Sensebox ESP"]').should("exist");
});

it("[Blockly] selects senseBox ESP", () => {
cy.visit("/");
Expand Down
Loading