GithubHelp home page GithubHelp logo

Comments (5)

CvX avatar CvX commented on July 20, 2024

I like it. If an error is thrown on the backend side of ECFT, it should be re-thrown on the test frontend.

from ember-cli-fastboot-testing.

ryanto avatar ryanto commented on July 20, 2024

Hey @thec0keman thanks for the issue.

I'd love to hear more about this idea! How are you currently using this in your tests?

from ember-cli-fastboot-testing.

thec0keman avatar thec0keman commented on July 20, 2024

Sorry for the delay in responding.

We currently are building a test suite for our fastboot conversion. Our current plan is to take our suite of acceptance tests, and adapt a sub-set of them to also test against fastboot.

While starting this, it became clear right away that testing the DOM results could be difficult for developers since the visit helper always passed. However, if we throw on an error, it makes the test perform more consistently.

This is an example test:

      // Network mock

      const result = await visit('/home');

      if (result.err)
        throw result.err;

      assert.exists('.nav-header');

from ember-cli-fastboot-testing.

ryanto avatar ryanto commented on July 20, 2024

Interesting!

My expectation would be that if visit errored here then assert.exists('.nav-header') would fail since fastboot wouldn't have rendered the html. Is there a case where visit errors but HTML is still rendered?

from ember-cli-fastboot-testing.

ryanto avatar ryanto commented on July 20, 2024

Hey @thec0keman I'm going to close this issue since it might have gone stale. Feel free to reopen!

from ember-cli-fastboot-testing.

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.