gitlab-org--gitlab-foss/app/views/shared/empty_states/_wikis_layout.html.haml
Mark Lapierre 38fcb11f97 Fix flaky wiki create test
There's an svg on the page that allows you to create a wiki page.
The svg takes a fraction of a second to load after which the
"Create your first page" button shifts up a bit. This can cause
 webdriver to miss the hit so we wait for the svg to load before
clicking the button.

Also update the elements used in the test to conform to our best
practice.

And replace `act` with `perform`

Finally, remove the `before` block and `login` method, making the
code slightly simpler.
2019-01-29 16:18:04 -05:00

7 lines
142 B
Text

.row.empty-state
.col-12
.svg-content.qa-svg-content
= image_tag image_path
.col-12
.text-content.text-center
= yield