Close Menu
    DevStackTipsDevStackTips
    • Home
    • News & Updates
      1. Tech & Work
      2. View All

      Sunshine And March Vibes (2025 Wallpapers Edition)

      May 30, 2025

      The Case For Minimal WordPress Setups: A Contrarian View On Theme Frameworks

      May 30, 2025

      How To Fix Largest Contentful Paint Issues With Subpart Analysis

      May 30, 2025

      How To Prevent WordPress SQL Injection Attacks

      May 30, 2025

      Does Elden Ring Nightreign have crossplay or cross-platform play?

      May 30, 2025

      Cyberpunk 2077 sequel enters pre-production as Phantom Liberty crosses 10 million copies sold

      May 30, 2025

      EA has canceled yet another game, shuttered its developer, and started more layoffs

      May 30, 2025

      The Witcher 3: Wild Hunt reaches 60 million copies sold as work continues on The Witcher 4

      May 30, 2025
    • Development
      1. Algorithms & Data Structures
      2. Artificial Intelligence
      3. Back-End Development
      4. Databases
      5. Front-End Development
      6. Libraries & Frameworks
      7. Machine Learning
      8. Security
      9. Software Engineering
      10. Tools & IDEs
      11. Web Design
      12. Web Development
      13. Web Security
      14. Programming Languages
        • PHP
        • JavaScript
      Featured

      How Remix is shaking things up

      May 30, 2025
      Recent

      How Remix is shaking things up

      May 30, 2025

      Perficient at Kscope25: Let’s Meet in Texas!

      May 30, 2025

      Salesforce + Informatica: What It Means for Data Cloud and Our Customers

      May 30, 2025
    • Operating Systems
      1. Windows
      2. Linux
      3. macOS
      Featured

      Does Elden Ring Nightreign have crossplay or cross-platform play?

      May 30, 2025
      Recent

      Does Elden Ring Nightreign have crossplay or cross-platform play?

      May 30, 2025

      Cyberpunk 2077 sequel enters pre-production as Phantom Liberty crosses 10 million copies sold

      May 30, 2025

      EA has canceled yet another game, shuttered its developer, and started more layoffs

      May 30, 2025
    • Learning Resources
      • Books
      • Cheatsheets
      • Tutorials & Guides
    Home»Development»How to resolve “Error: TypeScript compilation failed.” issue in Gitlab CI?

    How to resolve “Error: TypeScript compilation failed.” issue in Gitlab CI?

    June 17, 2024

    I’m trying to learn to create a pipeline in Gitlab. All my tests fail because of the compilation issue. My code is included below along with the error message.

    import loginPage from “../PageObjects/loginPage”;

    fixture(‘Login Tests’)
    .page(‘https://www.saucedemo.com/’);

    test(‘User Login to the website’, async (t) => {
    await loginPage.loginWebsite(‘performance_glitch_user’,’secret_sauce’);
    });

    import { Selector, t } from “testcafe”;

    class loginPage{
    userName: Selector;
    password: Selector;
    loginBtn: Selector;
    pageName: Selector;

    constructor(){
    this.userName = Selector(‘#user-name’);
    this.password = Selector(‘#password’);
    this.loginBtn = Selector(‘#login-button’);
    this.pageName = Selector(‘.title’);
    }

    async loginWebsite(username, password){
    await t
    .typeText(this.userName, username)
    .typeText(this.password, password)
    .click(this.loginBtn)
    .expect(Selector(this.pageName).innerText).eql(‘Products’);
    }
    }

    export default new loginPage;

    package.json

    {
    “name”: “testcafeproj”,
    “version”: “1.0.0”,
    “description”: “Assignment”,
    “main”: “index.js”,
    “scripts”: {
    “test”: “testcafe chrome tests/**/*”,
    “test2”: “testcafe edge tests/**/*”,
    “test:chrome:headless”: “testcafe chrome:headless tests/**/*”,
    “test:chrome:reports”: “testcafe chrome tests/* –reporter html:reports/report.html”,
    “test:chrome:reports:ss”: “testcafe chrome tests/*.ts -s takeOnFails=true –reporter html:reports/report.html”
    },
    “author”: “test”,
    “license”: “ISC”,
    “devDependencies”: {
    “faker”: “^5.5.3”,
    “faker-js”: “^1.0.0”,
    “testcafe”: “^2.4.0”,
    “typescript”: “^4.9.5”
    },
    “dependencies”: {
    “@faker-js/faker”: “^7.6.0”,
    “testcafe-reporter-html”: “^1.4.6”
    }
    }

    .gitlab-ci.yml

    stages:
    – test

    test_job:
    image: cypress/browsers:node18.12.0-chrome107
    stage: test
    script:
    – npm ci
    – npm run test:chrome:headless

    This is the error message in CI

    Source: Read More

    Facebook Twitter Reddit Email Copy Link
    Previous ArticleWays Serverless Architecture is Transforming Businesses
    Next Article Robot Framework – Best keyword to tab off an element

    Related Posts

    Common Vulnerabilities and Exposures (CVEs)

    CVE-2025-5367 – “PHPGurukul Online Shopping Portal SQL Injection Vulnerability”

    May 31, 2025
    Common Vulnerabilities and Exposures (CVEs)

    CVE-2025-5016 – Relevanssi WordPress Stored Cross-Site Scripting Vulnerability

    May 31, 2025
    Leave A Reply Cancel Reply

    Continue Reading

    Columbus Judge Issues Restraining Order Against Cybersecurity Expert

    Development

    Reimagining Fluid Typography

    Web Development

    TypeScript Type Manipulation with keyof, typeof, and Mapped Types

    Development

    Meet Tsinghua University’s GLM-4-9B-Chat-1M: An Outstanding Language Model Challenging GPT 4V, Gemini Pro (on vision), Mistral and Llama 3 8B

    Development
    GetResponse

    Highlights

    CVE-2024-58253 – Obfstr Crate Invalid UTF-8 Conversion Vulnerability

    May 2, 2025

    CVE ID : CVE-2024-58253

    Published : May 2, 2025, 8:15 p.m. | 3 hours, 15 minutes ago

    Description : In the obfstr crate before 0.4.4 for Rust, the obfstr! argument type is not restricted to string slices, leading to invalid UTF-8 conversion that produces an invalid value.

    Severity: 2.9 | LOW

    Visit the link for more details, such as CVSS details, affected products, timeline, and more…

    How ZURU improved the accuracy of floor plan generation by 109% using Amazon Bedrock and Amazon SageMaker

    May 30, 2025

    Lummi: Say Goodbye to Boring Stock Photos Forever

    July 4, 2024

    LLMs Can Learn Complex Math from Just One Example: Researchers from University of Washington, Microsoft, and USC Unlock the Power of 1-Shot Reinforcement Learning with Verifiable Reward

    May 3, 2025
    © DevStackTips 2025. All rights reserved.
    • Contact
    • Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.