skip to Main Content

Laravel – get route field parameter

When I'm testing get route in Laravel I am getting error that token field is required. $response = $this->get(route('resendsms', ['token' => $token])); web route Route::get('/auth/resendsms/{token}', [AuthController::class, 'resendsms'])->name('resendsms'); I seem not to have the right syntax What am I doing wrong?…

VIEW QUESTION

Reactjs – cypress tests. How to test deeplink

I have one issue with cypress test. I have such test const deeplinkUrl = 'https://deeplink.page.link/2WmRA4zbfUcQz5AY9'; describe('upload scan view', () => { beforeEach(() => { cy.visit('/deplinkPage'); cy.injectAxe(); }); it('should redirect user to deep link', () => { cy.waitForLoaderRemoval(); cy.getEnabledButton('Install for Free');…

VIEW QUESTION

How to update Laravel session Id in testing

How can I make the get request load with its session id as what is initially created with $sessionId = session()->getId(); public function test_chatbot_messages_page_has_non_empty_chat(): void { $sessionId = session()->getId(); ChatbotMessage::create([ 'session_id' => $sessionId, 'content' => 'Hello', 'role' => 'You', ]);…

VIEW QUESTION
Back To Top
Search