@@ -637,36 +637,3 @@ temp:
637637 await expect ( lpModal . getByRole ( "button" , { name : "Add heating device" } ) ) . toBeVisible ( ) ;
638638 } ) ;
639639} ) ;
640-
641- test . describe ( "sponsor token" , ( ) => {
642- test ( "create charger with missing sponsor token" , async ( { page } ) => {
643- await start ( ) ;
644- await page . goto ( "/#/config" ) ;
645- await enableExperimental ( page ) ;
646-
647- // add loadpoint with OCPP charger
648- await newLoadpoint ( page , "OCPP Test Charger" ) ;
649- await page . getByTestId ( "loadpoint-modal" ) . getByRole ( "button" , { name : "Add charger" } ) . click ( ) ;
650- const chargerModal = page . getByTestId ( "charger-modal" ) ;
651- await expectModalVisible ( chargerModal ) ;
652- await chargerModal . getByLabel ( "Manufacturer" ) . selectOption ( { label : "OCPP 1.6J compatible" } ) ;
653-
654- // verify disabled save button
655- await expect ( chargerModal . getByRole ( "button" , { name : "Save" } ) ) . toBeDisabled ( ) ;
656-
657- // verify sponsor notice
658- await expect ( chargerModal ) . toContainText (
659- "You must configure a sponsor token before you can create this device."
660- ) ;
661- const testResult = chargerModal . getByTestId ( "test-result" ) ;
662- await testResult . getByRole ( "link" , { name : "Validate" } ) . click ( ) ;
663- const sponsorMessage = testResult . getByText ( "No sponsor token configured." ) ;
664- await expect ( sponsorMessage ) . toBeVisible ( ) ;
665-
666- // verify click on sponsor
667- await sponsorMessage . click ( ) ;
668- const sponsorModal = page . getByTestId ( "sponsor-modal" ) ;
669- await expectModalVisible ( sponsorModal ) ;
670- await expect ( sponsorModal . getByRole ( "heading" ) ) . toContainText ( "Sponsorship" ) ;
671- } ) ;
672- } ) ;
0 commit comments