GithubHelp home page GithubHelp logo

Comments (4)

langalex avatar langalex commented on June 1, 2024

can you enlighten me on what happened when "the problem became obvious"?

from culerity.

bratke avatar bratke commented on June 1, 2024

Scenario: Check in
Given I am logged in as "guenter"
And I am on the page of location "location1"
When I follow "Check-In"
Then I should see "eingecheckt"

'When I follow "Check-In"' runs successfully in both cases, 'Then I should see "eingecheckt" fails if using celerity -v=0.7.7 and above

http://de.culerity/locations/location1_street_1_berlin/check_in
is the output of "puts _link.absolute_url" in case -v=0.7.6, which triggers the correct action

http://de.culerity/users/guenter/home
is the output of "puts _link.absolute_url" in case -v=0.7.9, which triggers the wrong action -> the next step fails

from culerity.

langalex avatar langalex commented on June 1, 2024

ok, and now the html/js. are you using any javascript to manipulate that link?

from culerity.

bratke avatar bratke commented on June 1, 2024

in detail:

the show.html of locations-controller gets page cached

somewhere in it there is a
div class="location_action_fields_right"> /div>

and js-tag which looks like this:
<% javascript_tag do %>
$.getScript('<%= user_info_location_path(@location) %>');
<% end %>

this triggers the user_info(.rjs) -action which loads the check-in-link dynamically

page.replace_html '.location_action_fields_right', :partial => 'location_checkin_button'

it does look like a button, thatswhy it is not named link :)

but i also got this effect in another controller where no page-caching is used.

from culerity.

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.