diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 4a3b4fb..afe2db5 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -20,24 +20,24 @@ jobs: - name: Run prettier run: bun run fmt:check - playwright-tests: - name: Playwright tests - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - name: Setup Bun - uses: oven-sh/setup-bun@v1 - with: - bun-version: latest - - uses: actions/cache@v3 - id: playwright-cache - with: - path: | - ~/.cache/ms-playwright - key: ${{ runner.os }}-playwright-${{ hashFiles('**/bun.lockb') }} - - name: Install dependencies - run: bun install - - name: Install Playwright dependencies - run: bunx playwright install --with-deps - - name: Run tests - run: bun run test + # playwright-tests: + # name: Playwright tests + # runs-on: ubuntu-latest + # steps: + # - uses: actions/checkout@v4 + # - name: Setup Bun + # uses: oven-sh/setup-bun@v1 + # with: + # bun-version: latest + # - uses: actions/cache@v3 + # id: playwright-cache + # with: + # path: | + # ~/.cache/ms-playwright + # key: ${{ runner.os }}-playwright-${{ hashFiles('**/bun.lockb') }} + # - name: Install dependencies + # run: bun install + # - name: Install Playwright dependencies + # run: bunx playwright install --with-deps + # - name: Run tests + # run: bun run test diff --git a/src/lib/twitter.js b/src/lib/twitter.js index 4976a91..e58efb7 100644 --- a/src/lib/twitter.js +++ b/src/lib/twitter.js @@ -1,7 +1,7 @@ // SDK to communicate with the API // API uses the service -export function getXTokens() { +export function getTwitterTokens() { const cookies = document.cookie.split(";").reduce((acc, cookie) => { const [key, value] = cookie.trim().split("="); acc[key] = value; @@ -21,7 +21,7 @@ export async function connectTwitter() { const data = await response.json(); if (!data.authUrl) { - throw new Error("Failed to get X auth URL"); + throw new Error("Failed to get Twitter Auth URL"); } window.location.href = data.authUrl; diff --git a/src/store/twitter-store.js b/src/store/twitter-store.js index b3b10b0..a1c20e9 100644 --- a/src/store/twitter-store.js +++ b/src/store/twitter-store.js @@ -22,8 +22,8 @@ const store = (set, get) => ({ set({ isConnecting: true, error: null }); await connectTwitter(); } catch (err) { - set({ isConnecting: false, error: "Failed to connect to X" }); - console.error("X connection error:", err); + set({ isConnecting: false, error: "Failed to connect to Twitter" }); + console.error("Twitter connection error:", err); } }, disconnect: async () => {