diva-e-cypress - v1.0.3
    Preparing search index...

    Function switchUrl

    • Liest die erste Zeile der Feature-Datei, extrahiert (falls vorhanden) die URL im Format # url: ... und ersetzt in cypress.config.ts die baseUrl durch diese URL.

      Parameters

      • featureFile: string

        Vollständiger Pfad zur .feature-Datei.

      • output: OutputChannel

        VS Code Output-Channel für Status-/Fehlermeldungen.

      Returns null | string

      Die neu gesetzte URL bei Erfolg, sonst null.

      const newUrl = switchUrl('/abs/path/to/cypress/e2e/features/foo.feature', output);
      if (newUrl) {
      output.appendLine(`Neue baseUrl: ${newUrl}`);
      }