paul lahana

Joined

60 Experience
0 Lessons Completed
0 Questions Solved

Activity

Posted in Deploy Ubuntu 14.04 Trusty Tahr Discussion

Hey there !
I'm trying to deploy on a private server following this tutorial with a rails 5.2 app and somehow when I cap production destroy, i get an error saying

01 SassC::SyntaxError: Error: File to import not found or unreadable: bootstrap/scss/bootstrap.
01 on line 9:1 of app/assets/stylesheets/application.scss
01 >> @import "bootstrap/scss/bootstrap"; // from the node_modules

Looks like it doesn't bundle or like node_modules aren't there ?
From the server machine when i try to bundle or yarn from there, everything seems to be installed already.. where are supposed to be the node_modules on a capistrano deploy ?

Posted in How can I test sortableJs ? (RSpec)

I made a drag and drop to-do-list with SortableJs and i'm trying to test the drag-n-drop with RSpec/Selenium/Capybara if the request is sent onEnd.
I'm able to do the drag n drop using selenium drag_and_drop. My card is dropped in the right column but when i check if the status is persisted it looks like my PlannedAction still has it's previous status..
I tried to page.execute_script('const action_card = document.querySelector(".c-action-card"); action_card.dispatchEvent(new Event("dragend"));') to force the event to be fired and get the stimulus controller to react but still nothing..