open /sessions/login
type password admin-user
type login admin-user
clickAndWait commit
waitForElementPresent css=.js-user-authenticated
open /profiles
waitForElementPresent css=table[data-language="xoo"] tr[data-name="sample"] .quality-profiles-table-name a
click css=table[data-language="xoo"] tr[data-name="sample"] .quality-profiles-table-name a
waitForElementPresent css=.quality-profile-header .dropdown-toggle
click css=.quality-profile-header .dropdown-toggle
click css=#quality-profile-delete
waitForElementPresent css=#delete-profile-submit
click css=#delete-profile-submit
waitForElementPresent css=table[data-language="xoo"] tr[data-name="Basic"]
waitForElementNotPresent css=table[data-language="xoo"] tr[data-name="sample"]
open /profiles
waitForElementPresent css=table[data-language="xoo"] tr[data-name="Basic"]
assertElementNotPresent css=table[data-language="xoo"] tr[data-name="sample"]