Sha256: d715493e12b54408b64ed635056394c779fafaa9720d378750f496121594f657

Contents?: true

Size: 714 Bytes

Versions: 1

Compression:

Stored size: 714 Bytes

Contents

describe "documents list page", ->
  beforeEach ->
    browser().navigateTo("/e2e/load_fixtures")
    browser().navigateTo("/")

    element("table.databases tbody tr a:contains('first_database')").click()
    element("table.collections tbody tr a:contains('first_collection')").click()

  it "shows the documents page", ->
    expect(browser().location().url())
        .toBe("/databases/first_database/collections/first_collection/documents")

    title = element("h2").text()
    expect(title).toEqual("first_collection documents")

  it "displays a tab with collection stats", ->
    element(".tabbable a:contains('Collection stats')").click()
    expect(repeater("table tbody tr").count()).toBeGreaterThan(0)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mongo_browser-0.2.0.rc2 spec/javascripts/e2e/documents_scenario.js.coffee