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

      Sunshine And March Vibes (2025 Wallpapers Edition)

      May 29, 2025

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

      May 29, 2025

      How To Fix Largest Contentful Paint Issues With Subpart Analysis

      May 29, 2025

      How To Prevent WordPress SQL Injection Attacks

      May 29, 2025

      Gemini can now watch Google Drive videos for you – including work meetings

      May 29, 2025

      LG is still giving away a free 27-inch gaming monitor, but you’ll have to hurry

      May 29, 2025

      Slow Roku TV? This 30-second fix made my system run like new again

      May 29, 2025

      Hume’s new EVI 3 model lets you customize AI voices – how to try it

      May 29, 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

      Your Agentforce Readiness Assessment

      May 29, 2025
      Recent

      Your Agentforce Readiness Assessment

      May 29, 2025

      Introducing N|Sentinel: Your AI-Powered Agent for Node.js Performance Optimization

      May 29, 2025

      FoalTS framework – version 5 is released

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

      KB5058499 finally makes Windows 11 24H2 stable for gaming, and it wasn’t Nvidia’s fault

      May 29, 2025
      Recent

      KB5058499 finally makes Windows 11 24H2 stable for gaming, and it wasn’t Nvidia’s fault

      May 29, 2025

      Transform Your Workflow With These 10 Essential Yet Overlooked Linux Tools You Need to Try

      May 29, 2025

      KNOPPIX is a bootable Live system

      May 29, 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

    Development

    How to Build an AI-Powered Cooking Assistant with Flutter and Gemini

    May 29, 2025
    Development

    Learn Python for Data Science – Full Course for Beginners

    May 29, 2025
    Leave A Reply Cancel Reply

    Hostinger

    Continue Reading

    Long-Context Multimodal Understanding No Longer Requires Massive Models: NVIDIA AI Introduces Eagle 2.5, a Generalist Vision-Language Model that Matches GPT-4o on Video Tasks Using Just 8B Parameters

    Machine Learning

    CVE-2025-20671 – Thermal Out-of-Bounds Write Privilege Escalation Vulnerability

    Common Vulnerabilities and Exposures (CVEs)

    Key Principles of Usability for Touch and Gesture Accessibility in Health Systems – 4

    Development

    Sav-Rx Data Breach Potentially Compromised PII and Health Data of 2.8M Individuals

    Development

    Highlights

    Trusted Smart Interactive Whiteboard Dealer in Delhi for Education

    May 12, 2025

    Post Content Source: Read More 

    NIST Releases a Machine Learning Tool for Testing AI Model Risks

    July 30, 2024

    UAE Ministry of Education Faces Alleged Cyberattack from Pro-Palestinian Hacktivist Group

    June 7, 2024

    Benefits of Education Accessibility in Universal Design Series – 6

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

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