GithubHelp home page GithubHelp logo

add tests to web UI about prometheus HOT 8 CLOSED

prometheus avatar prometheus commented on May 1, 2024
add tests to web UI

from prometheus.

Comments (8)

grobie avatar grobie commented on May 1, 2024 2

Actually, I think we should separate the UI from the server (depends on #2467) and do the testing solely in javascript. There are proposals to rewrite the UI in Elm following the current alertmanager rewrite.

from prometheus.

matttproud avatar matttproud commented on May 1, 2024

👍

from prometheus.

mattbostock avatar mattbostock commented on May 1, 2024

I'd recommend Agouti, a webdriver client for Go:
http://agouti.org/#using-agouti-by-itself

Here are some examples tests I've written using Agouti:
https://github.com/mattbostock/leavediary/blob/a8eaf858c2b941773a471e7fc76b2f43aaa9e26c/acceptance_test.go#L74

from prometheus.

mattbostock avatar mattbostock commented on May 1, 2024

@grobie: Can you expand on what you mean by separating the UI from the server? Do you mean the UI will be entirely rendered using javascript, which connects to the API backend?

I think I mistook the intent of this issue to be 'acceptance tests', i.e. blackbox verification of common user journeys. Completely agree on testing the javascript side in isolation. Perhaps those might be covered as part of the work on integration testing: #1106

from prometheus.

grobie avatar grobie commented on May 1, 2024

from prometheus.

discordianfish avatar discordianfish commented on May 1, 2024

Agreed, and I've actually gained some experience recently with this. So if someone needs help setting up the frontend tests, let me know.

from prometheus.

simonpasquier avatar simonpasquier commented on May 1, 2024

This has been auto-closed erroneously.

from prometheus.

gouthamve avatar gouthamve commented on May 1, 2024

The new React UI has tests

from prometheus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.